custom fix
This commit is contained in:
+19
-15
@@ -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):
|
||||
def __init__(self, auditorium: str, day_of_week: str, pair_number: str, lecture: str, teacher: str, skip_process: bool = False):
|
||||
self.struct = Structure()
|
||||
self.auditorium = auditorium
|
||||
self.day_of_week = day_of_week
|
||||
@@ -109,20 +109,24 @@ class Lecture:
|
||||
|
||||
self.process_time()
|
||||
|
||||
self.teacher = self.process_teacher()
|
||||
if self.teacher == False:
|
||||
self.complete = False
|
||||
print()
|
||||
return
|
||||
|
||||
self.lecture = self.process_lecture()
|
||||
if self.lecture == False:
|
||||
self.complete = False
|
||||
print()
|
||||
return
|
||||
|
||||
print("[Препод.] ", self.input_teacher, "->", self.teacher)
|
||||
print("[Предмет] ", self.input_lecture, "->", self.lecture)
|
||||
if skip_process:
|
||||
self.teacher = self.process_teacher()
|
||||
if self.teacher == False:
|
||||
self.complete = False
|
||||
print()
|
||||
return
|
||||
|
||||
self.lecture = self.process_lecture()
|
||||
if self.lecture == False:
|
||||
self.complete = False
|
||||
print()
|
||||
return
|
||||
|
||||
print("[Препод.] ", self.input_teacher, "->", self.teacher)
|
||||
print("[Предмет] ", self.input_lecture, "->", self.lecture)
|
||||
else:
|
||||
self.teacher = self.input_teacher
|
||||
self.lecture = self.input_lecture
|
||||
|
||||
self.name = self.format_name()
|
||||
self.complete = True
|
||||
|
||||
Reference in New Issue
Block a user