fix: 更新煤粉热值触发计算的bug3
This commit is contained in:
parent
9a1074caf8
commit
a90396099b
|
@ -64,7 +64,7 @@ def get_pcoal_heat(year_s: int, month_s: int, day_s: int):
|
|||
"""
|
||||
key = f'pcoal_heat_{year_s}_{month_s}_{day_s}'
|
||||
pcoal_heat = cache.get(key)
|
||||
if pcoal_heat:
|
||||
if pcoal_heat is not None and pcoal_heat > 0:
|
||||
return pcoal_heat
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue