$def with (course,task,submissions)
$# Copyright (c) 2014-2015 Université Catholique de Louvain.
$#
$# This file is part of INGInious.
$#
$# INGInious is free software: you can redistribute it and/or modify
$# it under the terms of the GNU Affero General Public License as published
$# by the Free Software Foundation, either version 3 of the License, or
$# (at your option) any later version.
$#
$# INGInious is distributed in the hope that it will be useful,
$# but WITHOUT ANY WARRANTY; without even the implied warranty of
$# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
$# GNU Affero General Public License for more details.
$#
$# You should have received a copy of the GNU Affero General Public
$# License along with INGInious. If not, see
Author(s) | $",".join(task.get_authors()) |
Deadline | $task.get_deadline() |
Status | $if len(submissions) == 0: Not yet attempted $else: $ succeeded=False $ waiting=False $for submission in submissions: $if submission["status"] == "done" and submission["result"] == "success": $ succeeded=True $break $elif submission["status"] == "waiting": $ waiting=True $break $if succeeded: Succeeded $elif waiting: Waiting for verification $else: Wrong answer |
Grade | $user_manager.get_task_grade(task)% |
Grading weight | $task.get_grading_weight() |
Attempts | ${len(submissions)} |