fix: cal_mlog_count_from_mlogb 统计bug

This commit is contained in:
caoqianming 2024-09-03 17:57:23 +08:00
parent 9fee0b52d5
commit 044819815e
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ def cal_mlog_count_from_mlogb(mlog: Mlog):
"total_count_ok": Sum('count_ok'),
"total_count_notok": Sum('count_notok'),
}
f_names = [f.name for f in Mlogb._meta.fields if 'count_n' in f.name]
f_names = [f.name for f in Mlogb._meta.fields if 'count_n_' in f.name]
for f in f_names:
a_dict[f'total_{f}'] = Sum(f)
mlogb_summary = Mlogb.objects.filter(mlog=mlog).aggregate(