From a90396099b2651e0b6556d29e437439ac6df104e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 May 2024 16:57:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=85=A4=E7=B2=89?= =?UTF-8?q?=E7=83=AD=E5=80=BC=E8=A7=A6=E5=8F=91=E8=AE=A1=E7=AE=97=E7=9A=84?= =?UTF-8?q?bug3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index dff05f1d..e53e2a5e 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -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: