From 7af044792882d1991ab639bc428420b27580febc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 10 Jul 2023 10:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cal=5Fmpointstats=20=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E5=86=99=E9=94=99?= 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 aecf8dcc..16ca32ca 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -141,7 +141,7 @@ def cal_mpointstats(is_now=1): now, pre = get_current_and_previous_time() if is_now: for mpoint in Mpoint.objects.filter(is_auto=True): - cal_mpointstat_hour.delay(mpoint.id, now.year, now.moth, now.day, now.hour) + cal_mpointstat_hour.delay(mpoint.id, now.year, now.month, now.day, now.hour) else: for mpoint in Mpoint.objects.filter(is_auto=True): cal_mpointstat_hour.delay(mpoint.id, pre.year, pre.month, pre.day, pre.hour)