From 26a7e94b4ea600df259c5ce3c4abb6976983a3c8 Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Thu, 22 Jan 2026 14:53:40 -0500 Subject: [PATCH] Update previous updates file naming to include current timestamp for versioning --- update_mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_mongo.py b/update_mongo.py index e76913c..c8091e2 100755 --- a/update_mongo.py +++ b/update_mongo.py @@ -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