diff --git a/dags/business/business/community/price.py b/dags/business/business/community/price.py index 35d1238..f819785 100644 --- a/dags/business/business/community/price.py +++ b/dags/business/business/community/price.py @@ -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)