From 6b2bd7c5507b31546ff7ce4279e60b447389f98b Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 21 Feb 2023 19:00:05 -0600 Subject: [PATCH] Fix feed paging --- judge/views/problem.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/judge/views/problem.py b/judge/views/problem.py index fce7d1d..807fcc2 100644 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -765,7 +765,7 @@ class ProblemList(QueryStringSortMixin, TitleMixin, SolvedProblemMixin, ListView ) def GET_with_session(self, request, key): - if not request.GET: + if not request.GET.get(key): return request.session.get(key, False) return request.GET.get(key, None) == "1" @@ -843,11 +843,6 @@ class ProblemFeed(ProblemList, FeedView): title = _("Problem feed") feed_type = None - def GET_with_session(self, request, key): - if not request.GET: - return request.session.get(key, key == "hide_solved") - return request.GET.get(key, None) == "1" - def get_comment_page(self, problem): return "p:%s" % problem.code