Sandbox URL Creation

This commit is contained in:
pixeebot[bot]
2025-04-11 03:13:13 +00:00
committed by GitHub
parent 401449201c
commit 70e2ba98f4
6 changed files with 14 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ from django.db.models import Q
from location.forms import LocationForm
from .models import Location
from security import safe_requests
class LocationSearchView(View):
"""
@@ -51,7 +52,7 @@ class LocationSearchView(View):
elif filter_type == 'city':
params['featuretype'] = 'city'
response = requests.get(
response = safe_requests.get(
'https://nominatim.openstreetmap.org/search',
params=params,
headers={'User-Agent': 'ThrillWiki/1.0'},
@@ -164,7 +165,7 @@ def reverse_geocode(request):
return JsonResponse(cached_result)
try:
response = requests.get(
response = safe_requests.get(
'https://nominatim.openstreetmap.org/reverse',
params={
'lat': lat,