perf: Dashboard user login statistics issue

pull/13752/head
feng 2024-07-17 14:56:18 +08:00 committed by feng626
parent 244407b212
commit 60ac5ddaf2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class DateTimeMixin:
@lazyproperty
def user_login_logs_on_the_system_queryset(self):
qs = UserLoginLog.objects.all()
qs = UserLoginLog.objects.filter(status=LoginStatusChoices.success)
qs = self.get_logs_queryset_filter(qs, 'datetime')
queryset = qs.filter(username__in=construct_userlogin_usernames(self.users))
return queryset