From 6799dbe9015b5aa732e846ab90c843c0a72692f8 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 31 May 2024 12:05:45 +0200 Subject: [PATCH] feat: Use real geo api by default --- src/fellchensammlung/tools/geo.py | 2 +- src/fellchensammlung/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/tools/geo.py b/src/fellchensammlung/tools/geo.py index a5185b4..d7ffc8f 100644 --- a/src/fellchensammlung/tools/geo.py +++ b/src/fellchensammlung/tools/geo.py @@ -55,7 +55,7 @@ class GeoAPI: 'From': 'info@notfellchen.org' # This is another valid field } - def __init__(self, debug=True): + def __init__(self, debug=False): if debug: self.requests = RequestMock else: diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index e1e4ad9..74a9139 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -102,7 +102,7 @@ def add_adoption_notice(request): instance = form.save() """Search the location given in the location string and add it to the adoption notice""" - geo_api = GeoAPI(debug=True) + geo_api = GeoAPI() location = geo_api.get_location_from_string(instance.location_string) instance.location = location instance.save()