Browse Source

perf: navigation date metrics

pull/9128/head
feng 2 years ago
parent
commit
d0b9dd457f
  1. 3
      apps/jumpserver/api.py

3
apps/jumpserver/api.py

@ -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…
Cancel
Save