We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 518f23e commit 43fc6d9Copy full SHA for 43fc6d9
1 file changed
backend/usecase/event_usecase.py
@@ -96,7 +96,7 @@ def update_event(self, event_id: str, event_in: EventIn) -> Union[JSONResponse,
96
original_status = original_event.status
97
98
if event_in.maximumSprintDaySlots:
99
- registrations = self.__registration_repository.query_registrations(event_id)[1]
+ status, registrations, _ = self.__registration_repository.query_registrations(event_id)
100
if registrations not in (None, []):
101
eventSprintCount = len([reg for reg in registrations if reg.sprintDay])
102
event_in.sprintDayRegistrationCount = eventSprintCount
0 commit comments