mirror of https://github.com/jumpserver/jumpserver
perf: navigation date metrics
parent
4f718f9b1f
commit
d0b9dd457f
|
@ -31,7 +31,8 @@ class DatesLoginMetricMixin:
|
|||
query_params = self.request.query_params
|
||||
# monthly
|
||||
count = query_params.get('days')
|
||||
return count if count else 0
|
||||
count = int(count) if count else 0
|
||||
return count
|
||||
|
||||
@lazyproperty
|
||||
def sessions_queryset(self):
|
||||
|
|
Loading…
Reference in New Issue