Skip to content

Commit

Permalink
[BugFix] Add queued status for submission update (#4085)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Aug 4, 2023
1 parent 77210e2 commit dcd115e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/jobs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ def update_submission(request, challenge_pk):
jobs = submission.job_name
if job_name:
jobs.append(job_name)
if submission_status not in [Submission.RUNNING]:
if submission_status not in [Submission.QUEUED, Submission.RUNNING]:
response_data = {"error": "Sorry, submission status is invalid"}
return Response(response_data, status=status.HTTP_400_BAD_REQUEST)

Expand Down

0 comments on commit dcd115e

Please sign in to comment.