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
+2 -1
+2 -1
View File
@@ -704,8 +704,9 @@ 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']))
if 'loses on time' not in request.POST['error']:
test.error = True; test.save()
# Log the Error into the Events table