From 044819815e9532d7aa2850bb6ec9b3f27644bb8c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 3 Sep 2024 17:57:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cal=5Fmlog=5Fcount=5Ffrom=5Fmlogb=20?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 1f016479..5f56828a 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -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(