diff --git a/backend/dashboard/views.py b/backend/dashboard/views.py index b6fd552..6a161be 100644 --- a/backend/dashboard/views.py +++ b/backend/dashboard/views.py @@ -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,