This commit is contained in:
沈健
2025-06-20 15:07:09 +08:00
parent 7880ccf802
commit f892dcee0a
+1
View File
@@ -54,6 +54,7 @@ def sync():
# 福建诏安工业园区 福建省漳州市诏安工业园区丹诏大道15号 # 福建诏安工业园区 福建省漳州市诏安工业园区丹诏大道15号
if pd.notna(dev.city): if pd.notna(dev.city):
province_short = areautils.get_province(dev.city) province_short = areautils.get_province(dev.city)
if pd.notna(province_short):
new_name = re.sub(province_short, '', dev.name) new_name = re.sub(province_short, '', dev.name)
if pd.notna(dev.city) and pd.notna(dev.district): if pd.notna(dev.city) and pd.notna(dev.district):
city_short = areautils.get_city_short(dev.city) city_short = areautils.get_city_short(dev.city)