Skip to content

Commit 8dae67b

Browse files
committed
Fixing score decay application
1 parent 5c24c06 commit 8dae67b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsag/steps/gradescope/lateness.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ def run(cls, bsagio: BSAGIO, config: LatenessConfig) -> bool:
6060

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

63-
penalty = 1.0
63+
penalty = 0
6464
keys = sorted(config.score_decay.keys())
6565
for k in keys:
66-
if lateness < k:
66+
if lateness > k:
6767
penalty = config.score_decay[k]
6868

6969
if res.score is not None:

0 commit comments

Comments
 (0)