From 0ddf4e5271cb8ff3cea7da603cb749e8be74bfaf Mon Sep 17 00:00:00 2001 From: Vincent Bourgeois Date: Fri, 21 Dec 2018 00:11:54 +0100 Subject: [PATCH] Home use medium image format --- backend/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes.py b/backend/routes.py index 32f31bcc..7a73461e 100755 --- a/backend/routes.py +++ b/backend/routes.py @@ -77,7 +77,7 @@ def home(): for site in sites: id_site = site.get('id_site') photo = next(photo for photo in dump_photos if (photo.get('t_site') == id_site)) - site['photo'] = utils.getThumbnail(photo, 400).get('output_url') + site['photo'] = utils.getMedium(photo).get('output_url') site['commune'] = next(commune for commune in dump_communes if (commune.get('code_commune') == site.get('code_city_site')))