diff --git a/apps/wpm/services.py b/apps/wpm/services.py index e3951aeb..077d5770 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -397,7 +397,7 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): # 触发批次统计分析 xbatches = list(Mlogb.objects.filter(mlog=mlog).values_list('batch', flat=True)) - ana_batch_thread(xbatches) + ana_batch_thread(xbatchs=xbatches, mgroup=mlog.mgroup) # 触发单个统计 wprIds = list(Mlogbw.objects.filter(mlogb__mlog=mlog, ftest__isnull=False, wpr__isnull=False).values_list('wpr__id', flat=True)) @@ -619,7 +619,7 @@ def mlog_revert(mlog: Mlog, user: User, now: Union[datetime.datetime, None]): # 触发批次统计分析 xbatches = list(Mlogb.objects.filter(mlog=mlog).values_list('batch', flat=True)) - ana_batch_thread(xbatches) + ana_batch_thread(xbatches, mgroup=mlog.mgroup) # 触发单个统计 wprIds = list(Mlogbw.objects.filter(mlogb__mlog=mlog, ftest__isnull=False, wpr__isnull=False).values_list('wpr__id', flat=True))