feat: počet tootů týdne/měsíce v reportu

This commit is contained in:
2026-05-04 19:07:32 +02:00
parent 1a300680e3
commit 11f7eab2ef
2 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ def main():
out_path = os.path.join("data", f"{today}.json")
with open(out_path, "w", encoding="utf-8") as f:
json.dump({"date": today, "top": top, "tags": tags}, f, ensure_ascii=False, indent=2)
json.dump({"date": today, "total_count": len(timeline), "top": top, "tags": tags}, f, ensure_ascii=False, indent=2)
print(f"Uloženo: {out_path} ({len(timeline)} tootů načteno, {len(top)} top, {len(tags)} hashtagů)")