Рефактор
This commit is contained in:
+2
-2
@@ -96,7 +96,7 @@ class Singleton(type):
|
||||
return cls._instances[cls]
|
||||
|
||||
class Lecture:
|
||||
def __init__(self, auditorium: str, day_of_week: str, pair_number: str, lecture: str, teacher: str, skip_process: bool = False):
|
||||
def __init__(self, auditorium: str, day_of_week: str, pair_number: str, lecture: str, teacher: str, regular: bool = True):
|
||||
self.struct = Structure()
|
||||
self.auditorium = auditorium
|
||||
self.day_of_week = day_of_week
|
||||
@@ -109,7 +109,7 @@ class Lecture:
|
||||
|
||||
self.process_time()
|
||||
|
||||
if skip_process:
|
||||
if regular:
|
||||
self.teacher = self.process_teacher()
|
||||
if self.teacher == False:
|
||||
self.complete = False
|
||||
|
||||
Reference in New Issue
Block a user