Skip to content

Commit

Permalink
Merge pull request #750 from UCL-INGI/submission_last_replay_date
Browse files Browse the repository at this point in the history
[course_admin/submissions] last replay date
  • Loading branch information
anthonygego committed Dec 16, 2021
2 parents 03b5842 + 03abf94 commit e5386bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/frontend/submission_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def replay_job(self, task, submission, copy=False, debug=False):

self._database.submissions.update(
{"_id": submission["_id"], "status": "waiting"},
{"$set": {"jobid": jobid}}
{"$set": {"jobid": jobid,"last_replay": datetime.now()}}
)

if not copy:
Expand Down
8 changes: 8 additions & 0 deletions inginious/frontend/templates/course_admin/submissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h2>{{_("Submissions")}}</h2>
<th>{{ _("id") }}</th>
{% endif %}
<th>{{ _("submitted on") }}</th>
<th>{{ _("replayed on") }}</th>
<th>{{ _("result") }}</th>
{% if "show_tags" in old_params %}
<th>{{ _("tags") }}</th>
Expand Down Expand Up @@ -119,6 +120,13 @@ <h2>{{_("Submissions")}}</h2>
<td>{{ submission["_id"] }}</td>
{% endif %}
<td>{{ submission["submitted_on"].strftime("%d/%m/%Y %H:%M:%S") }}</td>
<td>
{% if "last_replay" in submission %}
{{submission["last_replay"].strftime("%d/%m/%Y %H:%M:%S") }}
{% else %}
-
{% endif %}
</td>
<td id="status">
{% if succeeded %}
{{_("Succeeded")}}
Expand Down

0 comments on commit e5386bb

Please sign in to comment.