mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix geocoding with opencage
This commit is contained in:
@@ -25,7 +25,7 @@ class GeoCodeView(LoginRequiredMixin, View):
|
|||||||
gs = GlobalSettingsObject()
|
gs = GlobalSettingsObject()
|
||||||
if gs.settings.opencagedata_apikey:
|
if gs.settings.opencagedata_apikey:
|
||||||
res = self._use_opencage(q)
|
res = self._use_opencage(q)
|
||||||
if gs.settings.mapquest_apikey:
|
elif gs.settings.mapquest_apikey:
|
||||||
res = self._use_mapquest(q)
|
res = self._use_mapquest(q)
|
||||||
else:
|
else:
|
||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
|
|||||||
Reference in New Issue
Block a user