Skip to content

Commit

Permalink
[feat/#72] Fix: urlmodel since BE param name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Aug 26, 2023
1 parent f645c16 commit 9fbde9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/images/professor-ubuntu/server/getAssignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
dir_path_student+"/"+assignment_id).encode('ascii')).decode('ascii') # base64 encode
urlmodel = json.loads(requests.get(
Urls.base_url+"/url/"+user["id"]).text)
url = urlmodel["apiEndpoint"]+"/files/" + encoded_dir_path_student
url = urlmodel["api_endpoint"]+"/files/" + encoded_dir_path_student
json_str = requests.get(url).text
# json to dict
result = json.loads(json.loads(json_str))
Expand Down
2 changes: 1 addition & 1 deletion resources/images/professor-ubuntu/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_directories(assignment_id, data_users_assigned):
dir_path_student+"/"+assignment_id).encode('ascii')).decode('ascii') # base64 encode
urlmodel = json.loads(requests.get(
Urls.base_url+"/url/"+user["id"]).text)
url = urlmodel["apiEndpoint"]+"/mkdir/" + encoded_dir_path_student
url = urlmodel["api_endpoint"]+"/mkdir/" + encoded_dir_path_student
result = requests.post(url).text
if result == False:
print("Error in mkdir, uid:"+user["id"])
Expand Down

0 comments on commit 9fbde9b

Please sign in to comment.