From 90ed2927e6f120e451b80f93210f24c6a37b99d4 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 30 Apr 2024 12:39:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20cal=5Fmpointstat=5Fhour=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 46f28f40..a36015c7 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -159,6 +159,8 @@ def cal_mpointstat_hour(mpointId: str, year: int, month: int, day: int, hour: in ratio = allocate["ratio"] # 查找并绑定值班记录 sflog = get_sflog(mgroup, dt) + if sflog is None: + myLogger.error(f'{mgroup.name}--{dt}') year_s, month_s, day_s = sflog.get_ymd params_hour_s = {