优化
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user