um, convert incoming GET params to int
This commit is contained in:
parent
044ef3ae58
commit
4f1113209c
|
@ -11,10 +11,10 @@ def search(request):
|
|||
|
||||
def search_json(request):
|
||||
search_term = request.GET.get("q", "")
|
||||
threshold = request.GET.get("threshold", 0.5)
|
||||
threshold = float(request.GET.get("threshold", '0.5'))
|
||||
bbox = request.GET.get("bbox", False)
|
||||
page = request.GET.get("page", 1)
|
||||
count = request.GET.get("count", 100)
|
||||
page = int(request.GET.get("page", '1'))
|
||||
count = int(request.GET.get("count", '100'))
|
||||
country = request.GET.get("adm0", "US") # right now, unused
|
||||
adm1 = request.GET.get("adm1", "")
|
||||
adm2 = request.GET.get("adm2", "")
|
||||
|
|
Loading…
Reference in New Issue
Block a user