Skip to content

Commit

Permalink
Merge pull request #101 from MoaRoom/feat/#97
Browse files Browse the repository at this point in the history
Fix values.txt path
  • Loading branch information
NayeonKeum authored Sep 29, 2023
2 parents 8fb6d66 + ad910cd commit 2e7f043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/images/professor-ubuntu/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ async def get_assignment(id: str, assignment_id: str):
f"/bin/bash {curr_path}/getValueAndTime_cpp.sh {file_path} {dir_path}")
else:
print("지원되지 않는 파일 형식입니다.")
f = open(f"{curr_path}/values.txt", "r")
f = open(f"{dir_path}/values.txt", "r")
values = f.read()
return_dict["answer"] = values
f.close()
f = open(f"{curr_path}/time.txt", "r")
f = open(f"{dir_path}/time.txt", "r")
time = f.read()
return_dict["runtime"] = time
f.close()
Expand Down

0 comments on commit 2e7f043

Please sign in to comment.