Skip to content

Commit

Permalink
Add assignment due date to submission header
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 authored Apr 23, 2024
1 parent 7871d3a commit afb5fcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tin/apps/submissions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def file_header(self):
"{0}Period: {3}",
"{0}Student: {4} ({5})",
"{0}Date: {6}",
"{0}Grade: {7}",
"{0}Due Date: {7}",
"{0}Grade: {8}",
)
)

Expand All @@ -168,6 +169,7 @@ def file_header(self):
self.student.full_name,
self.student.username,
timezone.localtime(self.date_submitted).strftime("%D (%B %e, %Y) %-I:%M %P"),
timezone.localtime(self.assignment.due).strftime("%D (%B %e, %Y) %-I:%M %P"),
self.formatted_grade,
)

Expand Down

0 comments on commit afb5fcd

Please sign in to comment.