diff --git a/late.py b/late.py index e8ca2f3..7480ef3 100644 --- a/late.py +++ b/late.py @@ -4,7 +4,7 @@ class LatePenalty(BasePlugin): def late_submission_penalty(self, student_id, score, total_seconds_late): - """Penalty of 5 pts per day late. Cap at 4 days""" - penalty_per_day = 5 - days_late = np.floor(total_seconds_late/3600/24) # generous grace period - return min(days_late*penalty_per_day, 4*penalty_per_day) \ No newline at end of file + """Penalty of 5 pts per day late. Cap at 4 days""" + penalty_per_day = 5 + days_late = np.floor(total_seconds_late/3600/24) # generous grace period + return min(days_late*penalty_per_day, 4*penalty_per_day) \ No newline at end of file