Skip to content

add - submission date to feedback#831

Merged
Drumor merged 3 commits into
INGInious:masterfrom
anaHue:fix_issue_278
Jul 7, 2022
Merged

add - submission date to feedback#831
Drumor merged 3 commits into
INGInious:masterfrom
anaHue:fix_issue_278

Conversation

@anaHue

@anaHue anaHue commented Jul 6, 2022

Copy link
Copy Markdown
Contributor

fix issue #278

Comment thread inginious/frontend/pages/tasks.py Outdated
"If the error persists, send an email to the course administrator.")

tojson["title"] += " " + _("[Submission #{submissionid}]").format(submissionid=data["_id"])
tojson["title"] += " " + _("[Submission #{submissionid} from the <b>{submissionDate}</b>]").format(submissionid=data["_id"], submissionDate=data["submitted_on"].replace(microsecond=0))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use format rather than replacing some value of the date.
See https://docs.python.org/fr/3/library/datetime.html#datetime.date.strftime

@Drumor

Drumor commented Jul 7, 2022

Copy link
Copy Markdown
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants