Don't kill tests on a NULL bench
This commit is contained in:
1 parent
4526a0425a
commit
19a8dd4172
1 file changed
+1
@@ -497,6 +497,7 @@ def clientWrongBench(request):
|
|||||||
if machine.user != user: return HttpResponse('Bad Machine')
|
if machine.user != user: return HttpResponse('Bad Machine')
|
||||||
|
|
||||||
# Find and stop the test with the bad bench
|
# Find and stop the test with the bad bench
|
||||||
|
if int(request.POST['wrong']) != 0:
|
||||||
test = Test.objects.get(id=int(request.POST['testid']))
|
test = Test.objects.get(id=int(request.POST['testid']))
|
||||||
test.finished = True; test.save()
|
test.finished = True; test.save()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user