Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typecast for query param #5445

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down