This commit is contained in:
Jian Shen
2023-04-25 22:15:27 +08:00
parent 6a0d4149b8
commit 13747baa12
+2 -2
View File
@@ -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)