This commit is contained in:
2025-08-20 14:04:56 +08:00
parent 203920ad6c
commit ef5601e0e0
+1 -1
View File
@@ -129,7 +129,7 @@ def calcByCity(city, year_month):
写字楼基准价 写字楼基准价
""" """
sql = "select * from latest_seawater where cat='office_sell' " sql = "select * from latest_seawater where cat='office_sell' "
if pd.notna(city): if pd.notna(city) and city != "":
sql += "and city='" + city + "' " sql += "and city='" + city + "' "
if pd.notna(year_month): if pd.notna(year_month):
last_year_month = dateutils.format_date( last_year_month = dateutils.format_date(