Skip to content

Commit

Permalink
fixing indent error in late.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gymreklab committed May 1, 2023
1 parent 8b4b509 commit e3ecd89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions late.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
"""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)

0 comments on commit e3ecd89

Please sign in to comment.