fix: handover_submit batches获取bug2
This commit is contained in:
		
							parent
							
								
									014b48e135
								
							
						
					
					
						commit
						9d1af24994
					
				|  | @ -767,8 +767,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, | ||||||
| 
 | 
 | ||||||
|         # 合并为新批 |         # 合并为新批 | ||||||
|         if mtype == Handover.H_MERGE: |         if mtype == Handover.H_MERGE: | ||||||
|  |             batch = new_batch | ||||||
|             source, _ = BatchSt.g_create(batch=wm_from.batch, exclude_batchst_ids=exclude_batchst_ids) |             source, _ = BatchSt.g_create(batch=wm_from.batch, exclude_batchst_ids=exclude_batchst_ids) | ||||||
|             BatchLog.g_create(source=source, target=target_b, handover=handover, relation_type="merge") |             BatchLog.g_create(source=source, target=target_b, handover=handover, relation_type="merge") | ||||||
|  |             batches.append(wm_from.batch) | ||||||
|         elif mtype == Handover.H_DIV: |         elif mtype == Handover.H_DIV: | ||||||
|             batch = handover_or_b.batch |             batch = handover_or_b.batch | ||||||
|             batches.append(batch) |             batches.append(batch) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue