feat: cal_mlog_count_from_mlogb 添加count_ok_full
This commit is contained in:
parent
ff2b098210
commit
4cc28b3583
|
@ -624,6 +624,7 @@ def cal_mlog_count_from_mlogb(mlog: Mlog):
|
|||
"total_count_break_t": Sum('count_break_t'),
|
||||
"total_count_real": Sum('count_real'),
|
||||
"total_count_ok": Sum('count_ok'),
|
||||
"total_count_ok_full": Sum('count_ok_full'),
|
||||
"total_count_notok": Sum('count_notok'),
|
||||
}
|
||||
f_names = [f.name for f in Mlogb._meta.fields if 'count_n_' in f.name]
|
||||
|
@ -638,6 +639,7 @@ def cal_mlog_count_from_mlogb(mlog: Mlog):
|
|||
mlog.count_break_t = mlogb_summary['total_count_break_t'] or 0
|
||||
mlog.count_real = mlogb_summary['total_count_real'] or 0
|
||||
mlog.count_ok = mlogb_summary['total_count_ok'] or 0
|
||||
mlog.count_ok_full = mlogb_summary['total_count_ok_full'] or 0
|
||||
mlog.count_notok = mlogb_summary['total_count_notok'] or 0
|
||||
for f in f_names:
|
||||
setattr(mlog, f, mlogb_summary[f'total_{f}'] or 0)
|
||||
|
|
Loading…
Reference in New Issue