From 2fc3d551c1cc72a1a2bb6a2b2f2edca327c8a0b7 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Wed, 7 May 2025 23:56:00 -0700 Subject: [PATCH] Extra timestamp debugging. --- utils/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/helpers.py b/utils/helpers.py index 87b46b0..52cb5ac 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -80,7 +80,7 @@ def pull_metadata(file_path, timestamp = False): if 'lastUsed' in file_cache and 'civitai' in file_cache: last_used = datetime.datetime.fromisoformat(file_cache['lastUsed']) if (datetime.datetime.now() - last_used).days == 0: - print("Pulled earlier today. No pull needed.") + print(f"Pulled earlier today. No pull needed. Update timestamp = {timestamp}") pull_json = False if pull_json: @@ -105,6 +105,7 @@ def pull_metadata(file_path, timestamp = False): file_cache['civitai'] = file_cache.get('civitai', "False") if timestamp: + print("Updating timestamp.") file_cache['lastUsed'] = datetime.datetime.now().isoformat() cache.data[file_path] = file_cache