set default threshold in views.py to 0.5

This commit is contained in:
Sanj 2011-08-31 16:06:43 +05:30
parent 410a41bc8d
commit 79aca4260f

View File

@ -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", "")