mirror of https://github.com/jumpserver/jumpserver
parent
1b2de703f4
commit
a4a871ff2b
|
@ -114,9 +114,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache):
|
|||
@staticmethod
|
||||
def compute_total_count_today_active_assets():
|
||||
t = local_zero_hour()
|
||||
return Session.objects.filter(
|
||||
date_start__gte=t, is_success=False
|
||||
).values('asset_id').distinct().count()
|
||||
return Session.objects.filter(date_start__gte=t).values('asset_id').distinct().count()
|
||||
|
||||
@staticmethod
|
||||
def compute_total_count_today_failed_sessions():
|
||||
|
|
Loading…
Reference in New Issue