Skip to content

Commit

Permalink
[frontend/plugins/scoreboard] get course from the course factory
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygego authored and thremilien committed Aug 22, 2024
1 parent 9c074e3 commit e6a1a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inginious/frontend/plugins/scoreboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ScoreBoardCourse(INGIniousAuthPage):

def GET_AUTH(self, courseid): # pylint: disable=arguments-differ
""" GET request """
course = self.taskset_factory.get_course(courseid)
course = self.course_factory.get_course(courseid)
scoreboards = course.get_descriptor().get('scoreboard', [])

try:
Expand Down Expand Up @@ -46,7 +46,7 @@ class ScoreBoard(INGIniousAuthPage):

def GET_AUTH(self, courseid, scoreboardid): # pylint: disable=arguments-differ
""" GET request """
course = self.taskset_factory.get_course(courseid)
course = self.course_factory.get_course(courseid)
scoreboards = course.get_descriptor().get('scoreboard', [])

try:
Expand Down

0 comments on commit e6a1a4c

Please sign in to comment.