From 68351ebc5f93c5281e309c50d3e5bbe984869a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 16 Sep 2021 15:37:30 +0200 Subject: [PATCH] adjust lecture view picker to new script class --- scripts/rofi-lectures-view.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/rofi-lectures-view.py b/scripts/rofi-lectures-view.py index bcc190c..7fe0e95 100755 --- a/scripts/rofi-lectures-view.py +++ b/scripts/rofi-lectures-view.py @@ -2,7 +2,8 @@ from courses import Courses from rofi import rofi -lectures = Courses().current.lectures +script = Courses().current.script +lectures = script.lectures commands = ['last', 'prev-last', 'all', 'prev'] options = ['Current lecture', 'Last two lectures', 'All lectures', 'Previous lectures'] @@ -18,5 +19,5 @@ else: command = selected lecture_range = lectures.parse_range_string(command) -lectures.update_lectures_in_master(lecture_range) -lectures.compile_master() +script.update_lectures_in_master(lecture_range) +script.compile_master()