Skip to content

Commit 68b2e07

Browse files
committed
fixed import error and updated url
1 parent 53d6adf commit 68b2e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/post_gen_project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import shutil
44
import requests
55
import subprocess
6+
import sys
67

78

89
def get_pref_label(activity_path):
@@ -49,7 +50,7 @@ def fetch_latest_checksum(base_path):
4950
try:
5051
# Using Python requests to fetch and parse JSON
5152
response = requests.get(
52-
"https://api.github.com/repos/ReproNim/reproschema-ui/commits/master"
53+
"https://api.github.com/repos/ReproNim/reproschema-ui/commits/main"
5354
)
5455
response.raise_for_status() # Raises an HTTPError if the HTTP request returned an unsuccessful status code
5556
latest_hash = response.json()["sha"]

0 commit comments

Comments
 (0)