fix: 优化ana_wpr4

This commit is contained in:
caoqianming 2025-07-04 22:17:02 +08:00
parent 33f79b5cc5
commit e57e087006
1 changed files with 4 additions and 2 deletions

View File

@ -391,7 +391,8 @@ def mlog_submit(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
# 触发单个统计
xnumbers = list(Mlogbw.objects.filter(mlogb__mlog=mlog, ftest__isnull=False, number__isnull=False).values_list('number', flat=True))
ana_wpr_thread(xnumbers, mlog.mgroup)
if xnumbers:
ana_wpr_thread(xnumbers, mlog.mgroup)
def mlog_revert(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
@ -608,7 +609,8 @@ def mlog_revert(mlog: Mlog, user: User, now: Union[datetime.datetime, None]):
# 触发单个统计
xnumbers = list(Mlogbw.objects.filter(mlogb__mlog=mlog, ftest__isnull=False, number__isnull=False).values_list('number', flat=True))
ana_wpr_thread(xnumbers, mlog.mgroup)
if xnumbers:
ana_wpr_thread(xnumbers, mlog.mgroup)
def cal_mtask_progress_from_mlog(mlog:Mlog):
"""