Legacy solution to old Networks; Report Machine throwing bench errors

This commit is contained in:
Andrew Grant committed 2021-01-08 10:23:58 +00:00
1 parent edf2685faf
commit 35e60151e1
3 files changed
+13 -6

No files matched your search

+3 -3
View File
@@ -623,8 +623,8 @@ def clientWrongBench(request):
name = request.POST['engine']
# Format a nice Error message
message = 'Got {0} Expected {1} for {2}'
message = message.format(wrong, correct, name)
message = 'Got {0} Expected {1} for {2} [{3}]'
message = message.format(wrong, correct, name, int(request.POST['machineid']))
# Log the error into the Events table
LogEvent.objects.create(
@@ -708,4 +708,4 @@ def clientSubmitResults(request):
if machine.user != user: return HttpResponse('Bad Machine')
# updateTest() will return 'None' or 'Stop'
return HttpResponse(OpenBench.utils.updateTest(request, user))
return HttpResponse(OpenBench.utils.updateTest(request, user))