mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-18 21:44: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(
|
||||
user=user,
|
||||
completion_date__gte=today_start,
|
||||
completion_date__lte=today_end
|
||||
start_event__gte=today_start,
|
||||
end_event__lte=today_end
|
||||
).count()
|
||||
|
||||
|
||||
data = {
|
||||
"completed_last_7_days": completed_last_7_days,
|
||||
"tasks_assigned_last_week": tasks_assigned_last_week,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user