Skip to content

Commit

Permalink
speed up list users
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 7, 2020
1 parent 2e1f310 commit c9dc4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userManagment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,8 @@ def fetchTableUsers(request):
diskUsage = 0

for webs in items.websites_set.all():
diskUsage = virtualHostUtilities.getDiskUsage("/home/" + webs.domain, webs.package.diskSpace)[0] + diskUsage
#diskUsage = virtualHostUtilities.getDiskUsage("/home/" + webs.domain, webs.package.diskSpace)[0] + diskUsage
diskUsage = 1

owner = Administrator.objects.get(pk=items.owner)

Expand Down

0 comments on commit c9dc4f0

Please sign in to comment.