Skip to content

Commit

Permalink
Fix bug when checking Submission.is_done.
Browse files Browse the repository at this point in the history
  • Loading branch information
fkdosilovic committed Nov 3, 2024
1 parent 160fcbb commit ddb839e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/judge0/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ def is_done(self) -> bool:
if self.status is None:
return False
else:
return self.status not in [Status.IN_QUEUE, Status.ACCEPTED]
return self.status["id"] not in [Status.IN_QUEUE, Status.PROCESSING]

0 comments on commit ddb839e

Please sign in to comment.