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