compress the mf (#1267)

This commit is contained in:
NotSoToothless
2026-05-24 19:44:12 -07:00
committed by GitHub
parent 99a43e398e
commit 9c6ca3bcd7
7 changed files with 50 additions and 41 deletions
+2 -2
View File
@@ -292,7 +292,7 @@ async def cleanup_replays():
whenever files inside are added or removed (including by this cleanup), which
would otherwise keep dirs perpetually "fresh".
"""
KEEP_FILES = {"replay_data.json"}
KEEP_FILES = {"replay_data.json.gz"}
def _sync_cleanup_replays():
"""Synchronous helper that walks replay dirs and deletes stale files."""
@@ -312,7 +312,7 @@ async def cleanup_replays():
if not entry_path.is_dir():
continue
json_path = entry_path / "replay_data.json"
json_path = entry_path / "replay_data.json.gz"
if json_path.exists():
entry_mtime = json_path.stat().st_mtime
else: