Commit 51ebf997 authored by ntome's avatar ntome

sueurdemetal: fix broken module due to departments containing letters

parent aeab3fac
......@@ -134,7 +134,7 @@ class PageCityList(BasePage):
if not v:
continue
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['name'] = option.text.split('(')[0].strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment