From ef5601e0e0f93f3336824b2b352666382f469362 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 14:04:56 +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 8364afe..4dbccec 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -129,7 +129,7 @@ def calcByCity(city, year_month): 写字楼基准价 """ sql = "select * from latest_seawater where cat='office_sell' " - if pd.notna(city): + if pd.notna(city) and city != "": sql += "and city='" + city + "' " if pd.notna(year_month): last_year_month = dateutils.format_date(