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 Mar 28, 2024
1 parent d012e29 commit b3a4095
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 b3a4095

Please sign in to comment.