From 9af3ee34bed2e829d5533f8a908d5b76b8839e4e Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 21 Jun 2020 19:11:32 -0400 Subject: [PATCH] Mark submissions with wrong acknowledgements as IE --- judge/bridge/judge_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/judge/bridge/judge_handler.py b/judge/bridge/judge_handler.py index 63299792cd..dbbf683606 100644 --- a/judge/bridge/judge_handler.py +++ b/judge/bridge/judge_handler.py @@ -263,6 +263,8 @@ def on_submission_processing(self, packet): def on_submission_wrong_acknowledge(self, packet, expected, got): json_log.error(self._make_json_log(packet, action='processing', info='wrong-acknowledge', expected=expected)) + Submission.objects.filter(id=expected).update(status='IE', result='IE', error=None) + Submission.objects.filter(id=got, status='QU').update(status='IE', result='IE', error=None) def on_submission_acknowledged(self, packet): if not packet.get('submission-id', None) == self._working: