diff --git a/lms/www/batch/learn.py b/lms/www/batch/learn.py index 0e233aac..a3b9566c 100644 --- a/lms/www/batch/learn.py +++ b/lms/www/batch/learn.py @@ -108,9 +108,9 @@ def get_page_extensions(context): def get_neighbours(current, lessons): numbers = [lesson.number for lesson in lessons] - tuples_list = [tuple(map(int, s.split("."))) for s in numbers] + tuples_list = [tuple(map(int, s.split("."))) for s in numbers] # noqa sorted_tuples = sorted(tuples_list) - sorted_numbers = [".".join(map(str, t)) for t in sorted_tuples] + sorted_numbers = [".".join(map(str, t)) for t in sorted_tuples] # noqa index = sorted_numbers.index(current) return {