mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 22:14:07 +01:00
fix dashboard api logic
This commit is contained in:
parent
778594ab9a
commit
cb7067de48
@ -86,11 +86,10 @@ class DashboardStatsTodoViewSet(viewsets.GenericViewSet, mixins.ListModelMixin):
|
|||||||
|
|
||||||
total_tasks_today = Todo.objects.filter(
|
total_tasks_today = Todo.objects.filter(
|
||||||
user=user,
|
user=user,
|
||||||
completion_date__gte=today_start,
|
start_event__gte=today_start,
|
||||||
completion_date__lte=today_end
|
end_event__lte=today_end
|
||||||
).count()
|
).count()
|
||||||
|
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"completed_last_7_days": completed_last_7_days,
|
"completed_last_7_days": completed_last_7_days,
|
||||||
"tasks_assigned_last_week": tasks_assigned_last_week,
|
"tasks_assigned_last_week": tasks_assigned_last_week,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user