Python formatting

This commit is contained in:
Mouse Reeve 2021-10-04 11:16:02 -07:00
parent 551b49b903
commit 2335945a50

View file

@ -46,10 +46,12 @@ class Dashboard(View):
"active": lambda q, s, e: q.filter( "active": lambda q, s, e: q.filter(
Q(is_active=True) | Q(deactivation_date__gt=e), Q(is_active=True) | Q(deactivation_date__gt=e),
created_date__lte=e, created_date__lte=e,
).filter( )
.filter(
last_active_date__gt=e - timedelta(days=31), last_active_date__gt=e - timedelta(days=31),
).count() )
} .count(),
},
) )
status_queryset = models.Status.objects.filter(user__local=True, deleted=False) status_queryset = models.Status.objects.filter(user__local=True, deleted=False)
@ -60,7 +62,7 @@ class Dashboard(View):
created_date__gt=s, created_date__gt=s,
created_date__lte=e, created_date__lte=e,
).count() ).count()
} },
) )
register_chart = Chart( register_chart = Chart(
@ -70,7 +72,7 @@ class Dashboard(View):
created_date__gt=s, created_date__gt=s,
created_date__lte=e, created_date__lte=e,
).count() ).count()
} },
) )
works_chart = Chart( works_chart = Chart(
@ -80,7 +82,7 @@ class Dashboard(View):
created_date__gt=s, created_date__gt=s,
created_date__lte=e, created_date__lte=e,
).count() ).count()
} },
) )
data = { data = {