mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
Python formatting
This commit is contained in:
parent
551b49b903
commit
2335945a50
1 changed files with 13 additions and 11 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue