新增格子均价
This commit is contained in:
@@ -49,7 +49,7 @@ params_rect = tbd.area_to_params(china_bounds, accuracy=accuracy)
|
|||||||
estate_type_list = ["普通住宅", "别墅", "商住"]
|
estate_type_list = ["普通住宅", "别墅", "商住"]
|
||||||
|
|
||||||
def sync(city):
|
def sync(city):
|
||||||
sql = f"select * from test_grid "
|
sql = f"select * from grid "
|
||||||
if pd.notna(city):
|
if pd.notna(city):
|
||||||
sql += f" where city='{city}' "
|
sql += f" where city='{city}' "
|
||||||
origin_grid_df = es206_client.scan_by_sql_to_data_frame(sql)
|
origin_grid_df = es206_client.scan_by_sql_to_data_frame(sql)
|
||||||
@@ -96,7 +96,7 @@ def sync(city):
|
|||||||
grid_info['price'] = price_list
|
grid_info['price'] = price_list
|
||||||
action = {
|
action = {
|
||||||
"_op_type": "update",
|
"_op_type": "update",
|
||||||
"_index": "test_grid",
|
"_index": "grid",
|
||||||
"_id": item['_id'],
|
"_id": item['_id'],
|
||||||
"doc": grid_info,
|
"doc": grid_info,
|
||||||
"_retry_on_conflict": 5
|
"_retry_on_conflict": 5
|
||||||
|
|||||||
Reference in New Issue
Block a user