feat(poi): 过滤跳过台湾省行政区划
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user