Skip to content

Commit

Permalink
Update update_solution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunterdii authored Nov 6, 2024
1 parent 996fede commit 4e5488d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/update_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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
Expand Down

0 comments on commit 4e5488d

Please sign in to comment.