From ff2b098210d17db167e15e433b395f6320954a6e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 6 Jun 2025 16:26:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96batches=5Fto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 82fcf7ae..dc5bb15b 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -718,7 +718,7 @@ class BatchLog(BaseModel): @classmethod def batches_to(cls, batch:str): - batches = BatchLog.objects.filter(source__batch=batch).values_list("target__batch", flat=True).distinct() + batches = BatchLog.objects.filter(source__batch=batch, relation_type="split").values_list("target__batch", flat=True).distinct() batches = sorted(list(batches), key=custom_key) last_batch_num = None if batches: