Skip to content

Commit

Permalink
Fixing score decay application
Browse files Browse the repository at this point in the history
  • Loading branch information
antonzabreyko committed Jul 2, 2023
1 parent 5c24c06 commit 8dae67b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bsag/steps/gradescope/lateness.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def run(cls, bsagio: BSAGIO, config: LatenessConfig) -> bool:

# At this point, we know the submission is late.

penalty = 1.0
penalty = 0
keys = sorted(config.score_decay.keys())
for k in keys:
if lateness < k:
if lateness > k:
penalty = config.score_decay[k]

if res.score is not None:
Expand Down

0 comments on commit 8dae67b

Please sign in to comment.