Skip to content

Commit

Permalink
[feat/#69] Fix: BE urls
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Aug 23, 2023
1 parent 543227e commit c0636a5
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 @@ -9,7 +9,7 @@

assignment_id = sys.argv[1]
json_str = requests.get(
Urls.base_url+"/assignments/"+assignment_id+"students-urls").text
Urls.base_url+"/assignments/"+assignment_id+"/students-urls").text
data_users_assigned = list(json.loads(json_str)) # json to list[dict]

dir_path = Urls.dir_path_professor
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 @@ -55,7 +55,7 @@ def create_directories(assignment_id, data_users_assigned):
async def create_assignment(assignment_info: Dto.AssignmentModel = None):
assignment_id = assignment_info.assignment_id
json_str = requests.get(
Urls.base_url+"/assignments/"+assignment_id+"students-urls").text
Urls.base_url+"/assignments/"+assignment_id+"/students-urls").text
data_users_assigned = list(json.loads(json_str))
due_date = assignment_info.due_date

Expand Down

0 comments on commit c0636a5

Please sign in to comment.