Reduce main page size, bugfix workers for a given user
This commit is contained in:
1 parent
bd98e33fcd
commit
425f43603a
1 file changed
+2
-2
+2
-2
@@ -107,7 +107,7 @@ def editProfile(request):
|
|||||||
# Send back to see the changes
|
# Send back to see the changes
|
||||||
return HttpResponseRedirect('/viewProfile/')
|
return HttpResponseRedirect('/viewProfile/')
|
||||||
|
|
||||||
def index(request, page=0, pageLength=50, username=None, error=''):
|
def index(request, page=0, pageLength=25, username=None, error=''):
|
||||||
|
|
||||||
# Get tests pending approval
|
# Get tests pending approval
|
||||||
pending = Test.objects.filter(approved=False)
|
pending = Test.objects.filter(approved=False)
|
||||||
@@ -129,7 +129,7 @@ def index(request, page=0, pageLength=50, username=None, error=''):
|
|||||||
# Pull data from active machines
|
# Pull data from active machines
|
||||||
target = datetime.datetime.utcnow().replace(tzinfo=utc) - datetime.timedelta(minutes=10)
|
target = datetime.datetime.utcnow().replace(tzinfo=utc) - datetime.timedelta(minutes=10)
|
||||||
machines = Machine.objects.filter(updated__gte=target)
|
machines = Machine.objects.filter(updated__gte=target)
|
||||||
if username != None: machines.filter(owner=username)
|
if username != None: machines = machines.filter(owner=username)
|
||||||
|
|
||||||
# Extract stat information from workers
|
# Extract stat information from workers
|
||||||
machineCount = len(machines)
|
machineCount = len(machines)
|
||||||
|
|||||||
Reference in new issue
Block a user