From 79aca4260fc376725259f812bbe9c25d8be442e5 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 16:06:43 +0530 Subject: [PATCH] set default threshold in views.py to 0.5 --- gazetteer/places/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazetteer/places/views.py b/gazetteer/places/views.py index 8369b99..a60e1cf 100644 --- a/gazetteer/places/views.py +++ b/gazetteer/places/views.py @@ -10,7 +10,7 @@ def search(request): def search_json(request): 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) country = request.GET.get("adm0", "US") # right now, unused adm1 = request.GET.get("adm1", "")