diff --git a/dags/company/company/fill_company_comm.py b/dags/company/company/fill_company_comm.py index 2f4d999..ff83e20 100644 --- a/dags/company/company/fill_company_comm.py +++ b/dags/company/company/fill_company_comm.py @@ -15,7 +15,7 @@ def sync(province): else: company_ids = list() shape_df = DIDATA_DEV_ELASTIC_CLIENT.scan_by_sql_to_data_frame(f"select city_name, area_name, street_name, name, shape from community where province_name='{province}'") - if len(shape_df) == 0 or 'shape' not in shape_df.columns or len(shape_df[shape_df['shape']]) == 0: + if len(shape_df) == 0 or 'shape' not in shape_df.columns or len(shape_df[shape_df['shape'].notna()]) == 0: log.info(f"{province}无围栏数据") return actions = list()