From 9909e848a63e35fdcc7b9d3704d02ab0442a1eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 21 Dec 2020 13:27:53 +0100 Subject: [PATCH] limit ATMO calls to new API (#49183) --- debian/50gnm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/50gnm.py b/debian/50gnm.py index a5b9c7d..5123316 100644 --- a/debian/50gnm.py +++ b/debian/50gnm.py @@ -190,7 +190,7 @@ JSON_CELL_TYPES = { ] }, "airquality": { - "url": "{{passerelle_url}}airquality/atmo/details/fr/lyon/", + "url": "{% if q_lat or lat %}http://api.atmo-aura.fr/partenaires/indice_request?api_token=6df2b0b505cc73c5545467758827458e&longitude={% firstof q_lon lon %}&latitude={% firstof q_lat lat %}{% endif %}", "cache_duration": 300, "force_async": False, "name": u"Qualité de l'air",