Skip to content

Commit

Permalink
Merge pull request #831 from anaHue/fix_issue_278
Browse files Browse the repository at this point in the history
add - submission date to feedback
  • Loading branch information
Drumor committed Jul 7, 2022
2 parents d217a51 + 752bc46 commit eccc423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/frontend/pages/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def submission_to_json(self, task, data, debug, reloading=False, replace=False,
tojson["title"] = _("An internal error occurred. Please retry later. "
"If the error persists, send an email to the course administrator.")

tojson["title"] += " " + _("[Submission #{submissionid}]").format(submissionid=data["_id"])
tojson["title"] += " " + _("[Submission #{submissionid} (<b>{submissionDate}</b>)]").format(submissionid=data["_id"], submissionDate=data["submitted_on"].strftime("%Y-%m-%d %H:%M:%S"))
tojson["title"] = self.plugin_manager.call_hook_recursive("feedback_title", task=task, submission=data, title=tojson["title"])["title"]

tojson["text"] = data.get("text", "")
Expand Down

0 comments on commit eccc423

Please sign in to comment.