diff --git a/scripts/build_tsn_ref.py b/scripts/build_tsn_ref.py index e79985b..52a3f49 100644 --- a/scripts/build_tsn_ref.py +++ b/scripts/build_tsn_ref.py @@ -83,7 +83,9 @@ def _money_ok(w: dict) -> bool | None: def _docs(snapshots: Path): - for meta_path in sorted(snapshots.glob("snapshots/niac_tsn/*/*/meta.json")): + # ключ документа содержит косые черты («indices/nobook/выпуск 222»), + # поэтому глубина каталогов разная — ищем рекурсивно. + for meta_path in sorted((snapshots / "snapshots" / "niac_tsn").rglob("meta.json")): extract_path = meta_path.with_name("extract.json") if not extract_path.exists(): continue