Commit 51ebf997 authored by Vincent A's avatar Vincent A

sueurdemetal: fix broken module due to departments containing letters

parent aeab3fac
......@@ -134,7 +134,7 @@ class PageCityList(BasePage):
if not v:
d = {}
d['code'], d['dept'] ='ville-metal-(.*)-(\d+).htm$', v).groups()
d['code'], d['dept'] ='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