From c7b7d9cec42ab85365b4f98e3fcd7bda80076003 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 3 Aug 2023 14:09:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cal=5Fenstat=5Fwhen=5Fpcoal=5Fheat=5Fcha?= =?UTF-8?q?nge=E7=9A=84qs=E8=8E=B7=E5=8F=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/tasks.py b/apps/wpm/tasks.py index ac25c4d2..43e4b400 100644 --- a/apps/wpm/tasks.py +++ b/apps/wpm/tasks.py @@ -110,7 +110,7 @@ def cal_enstat_when_pcoal_heat_change(sflogId): enstats = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, day_s=day_s, type__in = ['hour_s', 'sflog', 'day_s']) for enstat in enstats: cal_enstat_pcoal_change(enstat, pcoal_heat) - enstats_other = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, day_s=day_s, type__in = ['month_st', 'month_s', 'year_s']) + enstats_other = EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, month_s=month_s, type__in = ['month_st', 'month_s'])|EnStat.objects.filter(mgroup__name='回转窑', year_s=year_s, type__in = ['year_s']) for enstat in enstats_other: cal_enstat_pcoal_change(enstat, pcoal_heat)