Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 10, 2024
1 parent 73257d6 commit b599d00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/src/tira_app/endpoints/v1/_anonymous.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def download_anonymous_submission(request: Request, submission_uuid: str) -> Res
status_code, message = check_format(result_dir, format)

if status_code != _fmt.OK:
HttpResponseServerError(json.dumps({"status": 1, "message": message}))
return HttpResponseServerError(json.dumps({"status": 1, "message": message}))

ret = io.BytesIO()
with zipfile.ZipFile(ret, "w") as zipf:
Expand Down Expand Up @@ -115,7 +115,7 @@ def claim_submission(request: Request, vm_id: str, submission_uuid: str) -> Resp
status_code, message = check_format(result_dir, format)

if status_code != _fmt.OK:
HttpResponseServerError(json.dumps({"status": 1, "message": message}))
return HttpResponseServerError(json.dumps({"status": 1, "message": message}))

task_id = upload.dataset.default_task.task_id
dataset_id = upload.dataset.dataset_id
Expand Down

0 comments on commit b599d00

Please sign in to comment.