Fix range check in next_lesson #147

Closed
opened 2021-06-15 16:55:12 +02:00 by hansegucker · 3 comments
hansegucker commented 2021-06-15 16:55:12 +02:00 (Migrated from edugit.org)

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: ```
hansegucker commented 2021-06-15 16:55:22 +02:00 (Migrated from edugit.org)

created merge request !489 to address this issue

created merge request !489 to address this issue
hansegucker commented 2021-06-15 16:55:23 +02:00 (Migrated from edugit.org)

mentioned in merge request !489

mentioned in merge request !489
nik (Migrated from edugit.org) closed this issue 2021-06-16 19:07:24 +02:00
nik commented 2021-06-16 19:07:26 +02:00 (Migrated from edugit.org)

mentioned in commit f0f4afb395

mentioned in commit f0f4afb3952e5d5c6afee019ee39d2610cd03d57
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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.