Skip to content

Commit 11eef8a

Browse files
committed
Fix bug in lateness comparison for score decay
1 parent 5c24c06 commit 11eef8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsag/steps/gradescope/lateness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run(cls, bsagio: BSAGIO, config: LatenessConfig) -> bool:
6363
penalty = 1.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)