Fix range check in next_lesson #147

Closed
opened 2021-06-15 16:55:12 +02:00 by hansegucker · 3 comments
Owner

When next_lesson checks if there is a validity range after the current validity range, it uses the following if-block:

if validity_index >= len(validity_ranges):

But this would be the correct one:

if validity_index >= len(validity_ranges) - 1:
When next_lesson checks if there is a validity range after the current validity range, it uses the following if-block: ```python if validity_index >= len(validity_ranges): ``` But this would be the correct one: ```python if validity_index >= len(validity_ranges) - 1: ```
Author
Owner

created merge request !489 to address this issue

created merge request !489 to address this issue
Author
Owner

mentioned in merge request !489

mentioned in merge request !489
nik closed this issue 2021-06-16 19:07:24 +02:00
Owner

mentioned in commit f0f4afb395

mentioned in commit f0f4afb3952e5d5c6afee019ee39d2610cd03d57
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Chronos#147
No description provided.