fix: 更新煤粉热值触发计算的bug3

This commit is contained in:
caoqianming 2024-05-16 16:57:00 +08:00
parent 9a1074caf8
commit a90396099b
1 changed files with 1 additions and 1 deletions

View File

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