Skip to content

Commit

Permalink
Temporary test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Theophile-Madet committed Sep 27, 2024
1 parent 9392bb3 commit 4791b49
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tapir/statistics/views/private_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4791b49

Please sign in to comment.