From 6cf1074b8d7764bc790acaf039cfac7c20731110 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 4 Jan 2021 10:31:38 +0100 Subject: [PATCH] Fix geocoding with opencage --- src/pretix/control/views/geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/views/geo.py b/src/pretix/control/views/geo.py index debbc78578..b8155b728a 100644 --- a/src/pretix/control/views/geo.py +++ b/src/pretix/control/views/geo.py @@ -25,7 +25,7 @@ class GeoCodeView(LoginRequiredMixin, View): gs = GlobalSettingsObject() if gs.settings.opencagedata_apikey: res = self._use_opencage(q) - if gs.settings.mapquest_apikey: + elif gs.settings.mapquest_apikey: res = self._use_mapquest(q) else: return JsonResponse({