diff --git a/src/judge0/submission.py b/src/judge0/submission.py index 47c77b4..1aea899 100644 --- a/src/judge0/submission.py +++ b/src/judge0/submission.py @@ -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]