Skip to content

Commit 4a02cae

Browse files
authored
No ignorar archivos que tienen sólo entradas fuzzy (#2377)
Me di cuenta que en la página de [progreso de la traducción](https://python-docs-es.readthedocs.io/es/3.11/progress.html) quedan muchos archivos que sólo tienen entradas fuzzy para verificar, pero no hay un issue creado. En esta PR agrego una condición al script `create_issue.py` para que esos archivos no sean ignorados. Además, actualizo un import que no funciona con la version actual de `potodo`.
1 parent b15d5cb commit 4a02cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/create_issue.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77

88
from github import Github
9-
from potodo._po_file import PoFileStats
9+
from potodo.potodo import PoFileStats
1010

1111
if len(sys.argv) != 2:
1212
print('Specify PO filename')
@@ -32,7 +32,7 @@
3232
if answer != 'y':
3333
sys.exit(1)
3434

35-
if any([
35+
if pofile.fuzzy == 0 and any([
3636
pofile.translated_nb == pofile.po_file_size,
3737
pofile.untranslated_nb == 0,
3838
]):

0 commit comments

Comments
 (0)