From 489d4bb6e5dc17d0a2a393e0c98f9aa955986368 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 10 May 2024 15:45:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E7=85=A4=E8=80=97=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E4=BF=AE=E6=94=B92?= 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 ace70f0d..9f4e552a 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -685,7 +685,7 @@ def cal_enstat_pcoal_change(enstat: EnStat, new_pcoal_heat): enstat.pcoal_coal_consume = 0 # 算单位产品标煤耗 try: - enstat.coal_consume_unit = enstat.pcoal_coal_consume / enstat.total_production + enstat.coal_consume_unit = enstat.pcoal_coal_consume * 100 / enstat.total_production except ZeroDivisionError: enstat.coal_consume_unit = 0