From 4791b4995ab0bda71f5cdd7b009cc135eeb91261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Madet?= Date: Fri, 27 Sep 2024 14:45:11 +0200 Subject: [PATCH] Temporary test. --- tapir/statistics/views/private_views.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tapir/statistics/views/private_views.py b/tapir/statistics/views/private_views.py index 114221cd..05a5e0f4 100644 --- a/tapir/statistics/views/private_views.py +++ b/tapir/statistics/views/private_views.py @@ -134,10 +134,11 @@ def get_attendances_for_selection_at_date(cls, selection, at_date): slot__shift__cancelled=False, ) - # Only pick one attendance per slot, choosing the most recently updated one - attendances = attendances.order_by("slot", "-last_state_update").distinct( - "slot" - ) + if False: + # Only pick one attendance per slot, choosing the most recently updated one + attendances = attendances.order_by("slot", "-last_state_update").distinct( + "slot" + ) if selection == cls.SELECTION_ABCD_MEMBERS: attendances = cls.filter_attendance_by_attendance_mode_of_member_at_date(