From 50714225e5d9a767005fd91b8dfd766fe8ebc389 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 23 Aug 2023 08:45:09 +0800 Subject: [PATCH] fix: cal_enstat2 bug --- 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 f5c127ec..71a41032 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -470,11 +470,11 @@ def get_total_hour_now_and_shut_hour(enstat: EnStat): @shared_task(base=CustomTask) def cal_enstat2(type: str, year_s: int, month_s: int, day_s: int, cascade=True): if type == 'day_s': - cal_enstat2('day_s', year_s, month_s, day_s) + cal_enstat2('day_s', year_s, month_s, day_s, False) if cascade: - cal_enstat2('month_s', year_s, month_s, day_s) + cal_enstat2('month_s', year_s, month_s, day_s, False) elif type == 'month_s': - cal_enstat2('month_s', year_s, month_s, day_s) + cal_enstat2('month_s', year_s, month_s, day_s, False) else: return if type == 'month_s':