fix transferjob when accepted
This commit is contained in:
parent
0f0e6702e2
commit
28223d12b6
|
@ -393,7 +393,7 @@ def respond_invitation(invite: Invitation, accepted=True):
|
||||||
if invite.transferee_id is None:
|
if invite.transferee_id is None:
|
||||||
assign_job(job, invite.invitee_, 1)
|
assign_job(job, invite.invitee_, 1)
|
||||||
else:
|
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:
|
if not service:
|
||||||
raise Conflict
|
raise Conflict
|
||||||
unassign_job(job, invite.transferee_, service[0], True)
|
unassign_job(job, invite.transferee_, service[0], True)
|
||||||
|
|
Loading…
Reference in New Issue