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",