From a23dcf6de750067c60ab98a4eb89494655c0879c Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:36:56 +0000 Subject: [PATCH] current_commit_sha correction --- script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.py b/script.py index 56e0bdc..82b9ace 100644 --- a/script.py +++ b/script.py @@ -882,7 +882,7 @@ def read_or_initialize_sha(file_path, owner, repo, branch): else: # File doesn't exist, fetch the latest SHA and create the file current_commit_sha, _ = fetch_latest_commit_sha_and_date(owner, repo, branch) - if latest_commit_sha: + if current_commit_sha: with open(file_path, "w", encoding="utf-8") as file: json.dump({"last_known_commit_sha": current_commit_sha}, file) return current_commit_sha