From ddb839e2a8ead5fd23a00b3106280a6b305efb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Karlo=20Do=C5=A1ilovi=C4=87?= Date: Sun, 3 Nov 2024 18:35:01 +0100 Subject: [PATCH] Fix bug when checking Submission.is_done. --- src/judge0/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]