inginious.frontend.plugins.scoreboard package

A scoreboard, based on the usage of the “custom” dict in submissions. It uses the key “score” to retrieve score from submissions

class inginious.frontend.plugins.scoreboard.ScoreBoard[source]

Bases: inginious.frontend.pages.utils.INGIniousAuthPage

Page displaying a specific scoreboard

GET_AUTH(courseid, scoreboardid)[source]

GET request

class inginious.frontend.plugins.scoreboard.ScoreBoardCourse[source]

Bases: inginious.frontend.pages.utils.INGIniousAuthPage

Page displaying the different available scoreboards for the course

GET_AUTH(courseid)[source]

GET request

inginious.frontend.plugins.scoreboard.course_menu(course, template_helper)[source]

Displays the link to the scoreboards on the course page, if the plugin is activated for this course

inginious.frontend.plugins.scoreboard.init(plugin_manager, _, _2, _3)[source]

Init the plugin. Available configuration in configuration.yaml:

- plugin_module: "inginious.frontend.plugins.scoreboard"

Available configuration in course.yaml:

- scoreboard: #you can define multiple scoreboards
    - content: "taskid1" #creates a scoreboard for taskid1
      name: "Scoreboard task 1"
    - content: ["taskid2", "taskid3"] #creates a scoreboard for taskid2 and taskid3 (sum of both score is taken as overall score)
      name: "Scoreboard for task 2 and 3"
    - content: {"taskid4": 2, "taskid5": 3} #creates a scoreboard where overall score is 2*score of taskid4 + 3*score of taskid5
      name: "Another scoreboard"
      reverse: True #reverse the score (less is better)
inginious.frontend.plugins.scoreboard.sort_func(overall_result_per_user, reverse)[source]
inginious.frontend.plugins.scoreboard.task_menu(course, task, template_helper)[source]

Displays the link to the scoreboards on the task page, if the plugin is activated for this course and the task is used in scoreboards