新增格子均价
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user