Fix feed paging
This commit is contained in:
parent
de25c2045c
commit
6b2bd7c550
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue