From aa8cd7fd586550b6a56cf58d39ee38d73198513a Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Mon, 4 Nov 2019 23:48:47 +0900 Subject: [PATCH] fix typecast for query param --- app/retail/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/retail/views.py b/app/retail/views.py index 0c6552f5ddb..e85a43f56c5 100644 --- a/app/retail/views.py +++ b/app/retail/views.py @@ -1108,7 +1108,7 @@ def results(request, keyword=None): context['updated'] = js.created_on context['is_outside'] = True context['prefix'] = 'data-' - context['target'] = "/activity?page=" + str(request.GET.get('page', 0) + 1) + context['target'] = "/activity?page=" + str(int(request.GET.get('page', 0)) + 1) import json context['avatar_url'] = static('v2/images/results_preview.gif') return TemplateResponse(request, 'results.html', context)