From 28223d12b69baf0962aabff35b2b433012608758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 30 Apr 2023 13:55:57 +0200 Subject: [PATCH] fix transferjob when accepted --- backend/flaschengeist_events/event_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/flaschengeist_events/event_controller.py b/backend/flaschengeist_events/event_controller.py index 4d60e19..a3853c4 100644 --- a/backend/flaschengeist_events/event_controller.py +++ b/backend/flaschengeist_events/event_controller.py @@ -393,7 +393,7 @@ def respond_invitation(invite: Invitation, accepted=True): if invite.transferee_id is None: assign_job(job, invite.invitee_, 1) else: - service = filter(lambda s: s.userid == invite.transferee_id, job.services) + service = tuple(filter(lambda s: s.userid == invite.transferee_id, job.services)) if not service: raise Conflict unassign_job(job, invite.transferee_, service[0], True)