Skip to content

Commit 4e5488d

Browse files
authored
Update update_solution.py
1 parent 996fede commit 4e5488d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/update_solution.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import re
55

66
if __name__ == "__main__":
7-
assert(len(sys.argv) == 3) # Adjusted to take only the token and README path
7+
assert(len(sys.argv) == 4) # Adjusted to expect three arguments + the script name
8+
handle = "Hunterdii" # The fixed GitHub user handle
89
token = sys.argv[1]
910
readmePath = sys.argv[2]
1011

@@ -13,7 +14,7 @@
1314
}
1415

1516
# Set the target repository to the specific repo
16-
repo_name = "Hunterdii/GeeksforGeeks-POTD"
17+
repo_name = "Hunterdii/GeeksforGeeks-POTD"
1718
commit_url = f"https://api.github.com/repos/{repo_name}/commits?sha=main"
1819

1920
# Fetch the latest commit details

0 commit comments

Comments
 (0)