From 544ab4fea90dbd8d025de3a59764b898eedcfff6 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Tue, 21 Feb 2023 10:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/community/total_price_complete.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dags/business/business/community/total_price_complete.py b/dags/business/business/community/total_price_complete.py index 1c75677..4e82951 100644 --- a/dags/business/business/community/total_price_complete.py +++ b/dags/business/business/community/total_price_complete.py @@ -113,11 +113,11 @@ def sync(city=None): sql += " and city='" + city + "'" community_df = es206_client.scan_by_sql_to_data_frame(sql) - community_factor_df = complete_by_area(community_df) - complete_by_build_year_area(community_factor_df) - complete_by_region_area(community_factor_df) - - save(community_factor_df) + if len(community_df) > 0: + community_factor_df = complete_by_area(community_df) + complete_by_build_year_area(community_factor_df) + complete_by_region_area(community_factor_df) + save(community_factor_df) log.info(f"完成补全户均总价信息至206 {index_name}")