We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca5de9 commit 7191224Copy full SHA for 7191224
scripts/stats.py
@@ -10,7 +10,7 @@
10
from datetime import datetime, timezone
11
from pathlib import Path
12
13
-from potodo.potodo import scan_path
+from potodo.po_file import PoDirectory
14
15
logging.basicConfig(level=logging.INFO)
16
@@ -29,7 +29,8 @@ def main() -> None:
29
if not list(pofiles_path.rglob("*.po")):
30
raise FileNotFoundError(f"No PO files found in {pofiles_path}")
31
32
- stats = scan_path(pofiles_path, no_cache=True, hide_reserved=False, api_url="")
+ stats = PoDirectory(pofiles_path, use_cache=False)
33
+ stats.scan()
34
35
stats_data = {
36
"completion": str(round(stats.completion, 2)) + "%",
0 commit comments