summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-05-15 10:33:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-05-15 10:33:02 (GMT)
commita8725ab96143227b6c18073267448e6016934ae2 (patch)
tree81fa5a81b86247bde398fec8871f30b3fb03cf28
parentc24baefb06d7f19c1ac6b52b2df05934a03986bf (diff)
downloadcombo-plugin-gnm-a8725ab96143227b6c18073267448e6016934ae2.zip
combo-plugin-gnm-a8725ab96143227b6c18073267448e6016934ae2.tar.gz
combo-plugin-gnm-a8725ab96143227b6c18073267448e6016934ae2.tar.bz2
fix suggestion of arrondissement mairiev6.9
-rw-r--r--combo_plugin_gnm/templatetags/gnm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo_plugin_gnm/templatetags/gnm.py b/combo_plugin_gnm/templatetags/gnm.py
index e2f2ee2..cea84a9 100644
--- a/combo_plugin_gnm/templatetags/gnm.py
+++ b/combo_plugin_gnm/templatetags/gnm.py
@@ -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'