fix suggestion of arrondissement mairie
This commit is contained in:
parent
c24baefb06
commit
a8725ab961
|
@ -579,7 +579,7 @@ def get_suggestions(request, user_data, places_data):
|
|||
city_slug = slugify(city)
|
||||
if city_slug == 'lyon' and zipcode:
|
||||
try:
|
||||
city_slug = 'lyon-' + (int(zipcode) - 69000)
|
||||
city_slug = 'lyon-%s' % (int(zipcode) - 69000)
|
||||
except ValueError:
|
||||
# fallback to hotel de ville
|
||||
city_slug = 'ville-de-lyon'
|
||||
|
|
Loading…
Reference in New Issue