传参改为city

This commit is contained in:
shenjian@fangjia.com
2023-02-21 09:33:31 +08:00
parent f363f72a41
commit 2141839762
2 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ def sync(city=None):
sql = f"select id from {index_name} "
if pd.notna(city):
sql += f" from city={city}"
sql += f" where city='{city}'"
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
seaweed_df['_id'] = seaweed_df['_id'].astype(str)