fix: 标煤耗计算修改2

This commit is contained in:
caoqianming 2024-05-10 15:45:58 +08:00
parent 5b4742f181
commit 489d4bb6e5
1 changed files with 1 additions and 1 deletions

View File

@ -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