set default threshold in views.py to 0.5
This commit is contained in:
parent
410a41bc8d
commit
79aca4260f
|
@ -10,7 +10,7 @@ def search(request):
|
||||||
|
|
||||||
def search_json(request):
|
def search_json(request):
|
||||||
search_term = request.GET.get("search", "")
|
search_term = request.GET.get("search", "")
|
||||||
threshold = request.GET.get("threshold", None)
|
threshold = request.GET.get("threshold", 0.5)
|
||||||
bbox = request.GET.get("bbox", False)
|
bbox = request.GET.get("bbox", False)
|
||||||
country = request.GET.get("adm0", "US") # right now, unused
|
country = request.GET.get("adm0", "US") # right now, unused
|
||||||
adm1 = request.GET.get("adm1", "")
|
adm1 = request.GET.get("adm1", "")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user