From 4d65407e39f53b88162949a40671e4942f3f0f26 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 May 2024 11:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mpoitstat=20correct=20=E6=97=B6=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 450631a5..6910f5f2 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -358,6 +358,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, this_cal_attrs = cal_attrs[:] mgroup = Mgroup.objects.get(id=mgroupId) + sflog = None # 默认无班次 if sflogId: sflog = SfLog.objects.get(id=sflogId) elif year and month and day and hour is not None: