Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
polib==1.2.0
pomerge==0.1.4
potodo==0.25
potodo==0.31
powrap==1.0.2
sphinx-intl==2.3.2
sphinx-lint==1.0.0
sphinx-lint==1.0.1
5 changes: 3 additions & 2 deletions scripts/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from datetime import datetime, timezone
from pathlib import Path

from potodo.potodo import scan_path
from potodo.po_file import PoDirectory

logging.basicConfig(level=logging.INFO)

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

stats = scan_path(pofiles_path, no_cache=True, hide_reserved=False, api_url="")
stats = PoDirectory(pofiles_path, use_cache=False)
stats.scan()

stats_data = {
"completion": str(round(stats.completion, 2)) + "%",
Expand Down
Loading