mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 21:18:02 +00:00
Remove redundant all() before count()
This commit is contained in:
@@ -444,9 +444,9 @@ class StatsView(TemplateView, JsonResponse):
|
|||||||
self, request, *args, **kwargs
|
self, request, *args, **kwargs
|
||||||
): # pylint: disable=too-many-branches,too-many-statements,too-many-locals,no-self-use,unused-argument,too-many-return-statements
|
): # pylint: disable=too-many-branches,too-many-statements,too-many-locals,no-self-use,unused-argument,too-many-return-statements
|
||||||
retval = {
|
retval = {
|
||||||
"users": User.objects.all().count(),
|
"users": User.objects.count(),
|
||||||
"mails": ConfirmedEmail.objects.all().count(),
|
"mails": ConfirmedEmail.objects.count(),
|
||||||
"openids": ConfirmedOpenId.objects.all().count(), # pylint: disable=no-member
|
"openids": ConfirmedOpenId.objects.count(), # pylint: disable=no-member
|
||||||
}
|
}
|
||||||
|
|
||||||
return JsonResponse(retval)
|
return JsonResponse(retval)
|
||||||
|
|||||||
Reference in New Issue
Block a user