Update previous updates file naming to include current timestamp for versioning

This commit is contained in:
2026-01-22 14:53:40 -05:00
parent 968a3a2949
commit 26a7e94b4e
+1 -1
View File
@@ -183,7 +183,7 @@ def main() -> int:
try:
os.makedirs(tempdir, exist_ok=True)
out_file = 'tvmaze_updates.json'
prev_file = 'post_tvmaze_updates.json'
prev_file = f'post_tvmaze_updates.json.{currentTimestamp}'
previous_updates_file = f"{tempdir}{prev_file}"
# TVMAZE_URLS is a dict of urls; use the updatesurl if available
updates_url = TVMAZE_URLS.get('updatesurl') if isinstance(TVMAZE_URLS, dict) else None