From e81cfbe10d3492b4c65e7d424db48f8d4ed877fd Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 May 2024 14:18:12 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index e0c4d5e3..fa8712f5 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -388,7 +388,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s, enstat, _ = EnStat.objects.get_or_create( type="day_s", mgroup=mgroup, year_s=year_s, month_s=month_s, day_s=day_s, defaults={"type": "day_s", "mgroup": mgroup, "year_s": year_s, "month_s": month_s, "day_s": day_s} ) - elif type == "month_st" and team: + elif type == "month_st": enstat, _ = EnStat.objects.get_or_create( type="month_st", mgroup=mgroup, team=team, year_s=year_s, month_s=month_s, defaults={"type": "month_st", "mgroup": mgroup, "year_s": year_s, "month_s": month_s, "team": team} )