Skip to content

Commit 7191224

Browse files
authored
Replace scan_path with PoDirectory for stats
1 parent fca5de9 commit 7191224

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from datetime import datetime, timezone
1111
from pathlib import Path
1212

13-
from potodo.potodo import scan_path
13+
from potodo.po_file import PoDirectory
1414

1515
logging.basicConfig(level=logging.INFO)
1616

@@ -29,7 +29,8 @@ def main() -> None:
2929
if not list(pofiles_path.rglob("*.po")):
3030
raise FileNotFoundError(f"No PO files found in {pofiles_path}")
3131

32-
stats = scan_path(pofiles_path, no_cache=True, hide_reserved=False, api_url="")
32+
stats = PoDirectory(pofiles_path, use_cache=False)
33+
stats.scan()
3334

3435
stats_data = {
3536
"completion": str(round(stats.completion, 2)) + "%",

0 commit comments

Comments
 (0)