fix: handover_submit batches获取bug
This commit is contained in:
parent
9ede95a5d6
commit
265a15c9fc
|
@ -771,6 +771,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
|||
BatchLog.g_create(source=source, target=target_b, handover=handover, relation_type="merge")
|
||||
elif mtype == Handover.H_DIV:
|
||||
batch = handover_or_b.batch
|
||||
batches.append(batch)
|
||||
if batch in batches_to_limit:
|
||||
raise ParseError(f'{batch} 不在可拆批次中')
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue