Fix feed paging

This commit is contained in:
cuom1999 2023-02-21 19:00:05 -06:00
parent de25c2045c
commit 6b2bd7c550

View file

@ -765,7 +765,7 @@ class ProblemList(QueryStringSortMixin, TitleMixin, SolvedProblemMixin, ListView
) )
def GET_with_session(self, request, key): 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.session.get(key, False)
return request.GET.get(key, None) == "1" return request.GET.get(key, None) == "1"
@ -843,11 +843,6 @@ class ProblemFeed(ProblemList, FeedView):
title = _("Problem feed") title = _("Problem feed")
feed_type = None 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): def get_comment_page(self, problem):
return "p:%s" % problem.code return "p:%s" % problem.code