Skip to content

Commit 2aa5c95

Browse files
refactor: assign min/max values to correct variable
1 parent c0b033e commit 2aa5c95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grader_service/autograding/local_grader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,17 +489,17 @@ def _determine_cell_timeout(self):
489489
f"Found custom cell timeout in assignment settings: {custom_cell_timeout} seconds."
490490
)
491491
if custom_cell_timeout < self.min_cell_timeout:
492-
custom_cell_timeout = self.min_cell_timeout
492+
cell_timeout = self.min_cell_timeout
493493
self.log.info(
494494
f"Custom cell timeout is smaller than the minimum, setting it to the minimum value: {custom_cell_timeout}."
495495
)
496496
elif custom_cell_timeout > self.max_cell_timeout:
497-
custom_cell_timeout = self.max_cell_timeout
497+
cell_timeout = self.max_cell_timeout
498498
self.log.info(
499499
f"Custom cell timeout is bigger than the maximum, setting it to the maximum value: {custom_cell_timeout}."
500500
)
501-
502-
cell_timeout = custom_cell_timeout
501+
else:
502+
cell_timeout = custom_cell_timeout
503503

504504
return cell_timeout
505505

0 commit comments

Comments
 (0)