sueurdemetal: fix broken module due to departments containing letters
This commit is contained in:
parent
aeab3fac71
commit
51ebf99763
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class PageCityList(BasePage):
|
||||||
if not v:
|
if not v:
|
||||||
continue
|
continue
|
||||||
d = {}
|
d = {}
|
||||||
d['code'], d['dept'] = re.search(r'ville-metal-(.*)-(\d+).htm$', v).groups()
|
d['code'], d['dept'] = re.search(r'ville-metal-(.*)-([0-9AB]+).htm$', v).groups() # french dept
|
||||||
d['id'] = '%s-%s' % (d['code'], d['dept'])
|
d['id'] = '%s-%s' % (d['code'], d['dept'])
|
||||||
d['name'] = option.text.split('(')[0].strip()
|
d['name'] = option.text.split('(')[0].strip()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue