From 9e15b34ed7eb5369c5ddf3c1aad6c1a3c47e9e83 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 May 2024 13:15:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20month=5Fst=20=E9=9C=80=E6=8F=90=E5=89=8D?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 4b3eaaba..e0c4d5e3 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -369,9 +369,9 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, if sflog: year_s, month_s, day_s = sflog.get_ymd team = sflog.team - # 如果没有班组,那么month_st无需计算 - if team is None and type == "month_st": - return year_s, month_s, day_s + # 如果没有班组,那么month_st无需计算 + if team is None and type == "month_st": + return year_s, month_s, day_s if type == "hour_s": enstat, _ = EnStat.objects.get_or_create( type="hour_s",