No longer flag time losses as errors on the main page

This commit is contained in:
Andrew Grant committed 2021-06-15 13:26:34 -04:00
1 parent aed3064112
commit ed7cb14287
1 file changed
+3 -2
+3 -2
View File
@@ -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(