No longer flag time losses as errors on the main page
This commit is contained in:
1 parent
aed3064112
commit
ed7cb14287
1 file changed
+2
-1
+2
-1
@@ -704,8 +704,9 @@ def clientSubmitError(request):
|
|||||||
machine = Machine.objects.get(id=int(request.POST['machineid']))
|
machine = Machine.objects.get(id=int(request.POST['machineid']))
|
||||||
if machine.user != user: return HttpResponse('Bad Machine')
|
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 = Test.objects.get(id=int(request.POST['testid']))
|
||||||
|
if 'loses on time' not in request.POST['error']:
|
||||||
test.error = True; test.save()
|
test.error = True; test.save()
|
||||||
|
|
||||||
# Log the Error into the Events table
|
# Log the Error into the Events table
|
||||||
|
|||||||
Reference in new issue
Block a user