From 13747baa12933fcafa6dc3bd02bcfea81a93cb62 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 25 Apr 2023 22:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/price.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)