Sortable Networks; Disable noobhack

This commit is contained in:
Andrew Grant committed 2021-08-10 23:25:43 -04:00
1 parent 7e6d0c0b91
commit e3380f21f5
2 files changed
+46 -9

No files matched your search

+3 -3
View File
@@ -625,9 +625,9 @@ def clientGetWorkload(request):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# HACK: Make Noobpwnftw's workers jump around
if request.POST['username'] == 'WorkerPool':
N = len(set([x.engine for x in OpenBench.utils.getActiveTests()]))
if random.randrange(1 + N) == 0: return HttpResponse('None')
# if request.POST['username'] == 'WorkerPool':
# 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)