From e4b916037ce192083d5812991376d830bc646859 Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 14 May 2022 10:21:27 +0800 Subject: [PATCH] ui: fix another paginator --- packages/ui-default/package.json | 2 +- packages/ui-default/templates/partials/problem_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 6f3eee62d..9fbf1cde3 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.37.5", + "version": "4.37.6", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js", diff --git a/packages/ui-default/templates/partials/problem_list.html b/packages/ui-default/templates/partials/problem_list.html index b0fadb319..ad6c49d33 100644 --- a/packages/ui-default/templates/partials/problem_list.html +++ b/packages/ui-default/templates/partials/problem_list.html @@ -6,7 +6,7 @@ {% if not pdocs.length %} {{ nothing.render('Sorry, there is no problem in the problem set') }} {% else %} - {{ paginator.render(page, ppcount, position='top', add_qs=qs) }} + {{ paginator.render(page, ppcount, position='top', add_qs=('q=' + qs if qs else '')) }}