Fix problem feed completed problem

This commit is contained in:
cuom1999 2023-02-21 18:20:06 -06:00
parent 603b251511
commit de25c2045c

View file

@ -947,6 +947,12 @@ class ProblemFeed(ProblemList, FeedView):
res[position_in_q[problem.id]] = problem res[position_in_q[problem.id]] = problem
return res return res
def get_feed_context(self, object_list):
return {
"completed_problem_ids": self.get_completed_problems(),
"attempted_problems": self.get_attempted_problems(),
}
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(ProblemFeed, self).get_context_data(**kwargs) context = super(ProblemFeed, self).get_context_data(**kwargs)
context["page_type"] = "feed" context["page_type"] = "feed"