优化
This commit is contained in:
@@ -40,7 +40,7 @@ def build_doc(item):
|
||||
|
||||
|
||||
def sync_by_city(city):
|
||||
seaweed_df = tmp_ck.read_sql_query(f"select _id, city, region, name from community_summary where city='{city}'")
|
||||
seaweed_df = tmp_ck.read_sql_query(f"select id, city, region, name from community_summary where city='{city}'")
|
||||
if len(seaweed_df) == 0:
|
||||
return
|
||||
|
||||
@@ -116,7 +116,7 @@ def sync_by_city(city):
|
||||
action = {
|
||||
"_op_type": "update",
|
||||
"_index": index_name,
|
||||
"_id": item['_id'],
|
||||
"_id": item['id'],
|
||||
"doc": doc_info
|
||||
}
|
||||
actions.append(action)
|
||||
|
||||
Reference in New Issue
Block a user