Noob hack should be based on unique engines, not tests
This commit is contained in:
1 parent
0756faa5a8
commit
4d5e79e5b9
1 file changed
+2
-2
+2
-2
@@ -626,8 +626,8 @@ def clientGetWorkload(request):
|
||||
|
||||
# HACK: Make Noobpwnftw's workers jump around
|
||||
if request.POST['username'] == 'WorkerPool':
|
||||
if random.randrange(1 + len(OpenBench.utils.getActiveTests())) == 0:
|
||||
return HttpResponse('None')
|
||||
N = len(set([x.engine for x in OpenBench.utils.getActiveTests()]))
|
||||
if random.randrange(1 + N) == 0: return HttpResponse('None')
|
||||
|
||||
# Verify the User's credentials
|
||||
try: user = authenticate(request, True)
|
||||
|
||||
Reference in new issue
Block a user