perf: navigation date metrics

pull/9128/head
feng 2022-11-28 16:12:06 +08:00
parent 4f718f9b1f
commit d0b9dd457f
1 changed files with 2 additions and 1 deletions

View File

@ -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):