From 4e5488d3da98c4124e4ac87213181f2382ca763d Mon Sep 17 00:00:00 2001 From: Het Patel <124852522+Hunterdii@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:02:38 +0530 Subject: [PATCH] Update update_solution.py --- src/update_solution.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/update_solution.py b/src/update_solution.py index bc2e2f5d..d4e5d76b 100644 --- a/src/update_solution.py +++ b/src/update_solution.py @@ -4,7 +4,8 @@ import re if __name__ == "__main__": - assert(len(sys.argv) == 3) # Adjusted to take only the token and README path + assert(len(sys.argv) == 4) # Adjusted to expect three arguments + the script name + handle = "Hunterdii" # The fixed GitHub user handle token = sys.argv[1] readmePath = sys.argv[2] @@ -13,7 +14,7 @@ } # Set the target repository to the specific repo - repo_name = "Hunterdii/GeeksforGeeks-POTD" + repo_name = "Hunterdii/GeeksforGeeks-POTD" commit_url = f"https://api.github.com/repos/{repo_name}/commits?sha=main" # Fetch the latest commit details