新增格子均价

This commit is contained in:
shenjian@fangjia.com
2023-05-09 13:49:53 +08:00
parent 279663f351
commit 4a44be7c29
+2 -2
View File
@@ -49,7 +49,7 @@ params_rect = tbd.area_to_params(china_bounds, accuracy=accuracy)
estate_type_list = ["普通住宅", "别墅", "商住"]
def sync(city):
sql = f"select * from test_grid "
sql = f"select * from grid "
if pd.notna(city):
sql += f" where city='{city}' "
origin_grid_df = es206_client.scan_by_sql_to_data_frame(sql)
@@ -96,7 +96,7 @@ def sync(city):
grid_info['price'] = price_list
action = {
"_op_type": "update",
"_index": "test_grid",
"_index": "grid",
"_id": item['_id'],
"doc": grid_info,
"_retry_on_conflict": 5