From beec108127e220e4004c25837eedc4d65a8a7c15 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Mon, 28 Nov 2022 13:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=A9=E4=B8=9A=E8=B4=B9?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/estate_charge_complete.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/business/business/community/estate_charge_complete.py b/dags/business/business/community/estate_charge_complete.py index 18ef988..a5a4f3e 100644 --- a/dags/business/business/community/estate_charge_complete.py +++ b/dags/business/business/community/estate_charge_complete.py @@ -99,7 +99,7 @@ def sync_by_city(city_now): community_summary_df = es206_client.scan_by_sql_to_data_frame(sql) with ThreadPoolExecutor(max_workers=50) as pool: def deal(index, item): - if index % 1000 == 0: + if (index + 1) % 1000 == 0: log.info(f"已补充{index}") if pd.notna(item['location']) and pd.notna(item['location']['lon']): location = [item['location']['lon'], item['location']['lat']] @@ -128,4 +128,4 @@ def sync(city=None): sync_by_city(city) -sync('上海') \ No newline at end of file +sync() \ No newline at end of file