From 27a8f78f62aa00babe01d49f6f2cc538c149b06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 20 Aug 2025 12:23:09 +0800 Subject: [PATCH] fix bug --- dags/office/sell/base_price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index f61f8ae..e8efacc 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -35,7 +35,7 @@ def calc(**kwargs): district = conf.get('district', '') office_name = conf.get('name', '') - if pd.isna(office_name): + if pd.isna(office_name) or office_name == "": calcByCity(city, year_month) else: # 直接重算出最近一年的数据,保证一年有数据