Fix namespace issue with Noob hack

This commit is contained in:
Andrew Grant committed 2021-07-06 17:19:01 -04:00
1 parent 99aa75d8b8
commit 453fb16830
1 file changed
+1 -1
+1 -1
View File
@@ -626,7 +626,7 @@ def clientGetWorkload(request):
# HACK: Make Noobpwnftw's workers jump around
if request.POST['username'] == 'WorkerPool':
if random.randrange(1 + len(getActiveTests())) == 0:
if random.randrange(1 + len(OpenBench.utils.getActiveTests())) == 0:
return HttpResponse('None')
# Verify the User's credentials