This commit is contained in:
沈健
2025-06-05 17:36:32 +08:00
parent e3e3ebc981
commit 27de5a7ec9
+1 -1
View File
@@ -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()