fix transferjob when accepted

This commit is contained in:
Tim Gröger 2023-04-30 13:55:57 +02:00
parent 0f0e6702e2
commit 28223d12b6
1 changed files with 1 additions and 1 deletions

View File

@ -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)