adjust lecture view picker to new script class

This commit is contained in:
Maximilian Keßler 2021-09-16 15:37:30 +02:00
parent 896c90a822
commit 68351ebc5f

View file

@ -2,7 +2,8 @@
from courses import Courses from courses import Courses
from rofi import rofi from rofi import rofi
lectures = Courses().current.lectures script = Courses().current.script
lectures = script.lectures
commands = ['last', 'prev-last', 'all', 'prev'] commands = ['last', 'prev-last', 'all', 'prev']
options = ['Current lecture', 'Last two lectures', 'All lectures', 'Previous lectures'] options = ['Current lecture', 'Last two lectures', 'All lectures', 'Previous lectures']
@ -18,5 +19,5 @@ else:
command = selected command = selected
lecture_range = lectures.parse_range_string(command) lecture_range = lectures.parse_range_string(command)
lectures.update_lectures_in_master(lecture_range) script.update_lectures_in_master(lecture_range)
lectures.compile_master() script.compile_master()