feat: Use real geo api by default
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user