From ed7cb14287d8244f1fe768e7bae3fd0e6d6b3f4f Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Tue, 15 Jun 2021 13:26:34 -0400 Subject: [PATCH] No longer flag time losses as errors on the main page --- OpenBench/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenBench/views.py b/OpenBench/views.py index 2ddc1f5..ce2d43a 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -704,9 +704,10 @@ def clientSubmitError(request): machine = Machine.objects.get(id=int(request.POST['machineid'])) if machine.user != user: return HttpResponse('Bad Machine') - # Flag the Test as having an error + # Flag the Test as having an error except for time losses test = Test.objects.get(id=int(request.POST['testid'])) - test.error = True; test.save() + if 'loses on time' not in request.POST['error']: + test.error = True; test.save() # Log the Error into the Events table LogEvent.objects.create(