Skip to content

Commit

Permalink
radius: hide rows in table until deadline passes
Browse files Browse the repository at this point in the history
until the student makes an initial submission and the initial submission
deadline has passed, it does not make sense to display all the rows of
the table, because the peer review will not be filled in, and the student
may not be eligle for making a final submission if they do not make an
initial one.
  • Loading branch information
charliemirabile committed Oct 16, 2024
1 parent 4a00af8 commit 8341650
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions orbit/radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,16 @@ def body(self):
<td colspan="3">-</td>
</tr>
"""
if (not self.init or
(int(datetime.now().timestamp())
< self.assignment.initial_due_date)):
return f"""
{self.gradeable_row('Initial Submission', self.init, self.oopsie_button())}
<tr>
<th>Automated Feedback</th>
<td colspan="3">-</td>
</tr>
"""
return f"""
{self.gradeable_row('Initial Submission', self.init, self.oopsie_button())}
<tr>
Expand Down

0 comments on commit 8341650

Please sign in to comment.