compress the mf (#1267)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user