From 3e927f2c6d766c4671130207f18bed9d7b78a69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 16 Sep 2026 10:09:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(poi):=20=E8=BF=87=E6=BB=A4=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E5=8F=B0=E6=B9=BE=E7=9C=81=E8=A1=8C=E6=94=BF=E5=8C=BA?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/poi/dag_check_gov_township_diff.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dags/poi/dag_check_gov_township_diff.py b/dags/poi/dag_check_gov_township_diff.py index 5c3ac02..d0ae72f 100644 --- a/dags/poi/dag_check_gov_township_diff.py +++ b/dags/poi/dag_check_gov_township_diff.py @@ -101,10 +101,14 @@ def check_gov_township_diff(**context): source = hit.get("_source", {}) doc_id = hit.get("_id") - province = source.get("province", "") + province = str(source.get("province", "")).strip() city = source.get("city", "") district = str(source.get("district", "")).strip() + # 台湾省的行政区划跳过 + if "台湾" in province: + continue + # 校验的是县政府驻扎地,如果区域是以“区”结尾(市辖区),直接跳过 if district.endswith("区"): continue