diff --git a/advlabdb/scripts/setup/init_database.py b/advlabdb/scripts/setup/init_database.py index baf75c3..9b91402 100644 --- a/advlabdb/scripts/setup/init_database.py +++ b/advlabdb/scripts/setup/init_database.py @@ -34,7 +34,7 @@ def main(): check_constraints_function=lambda n: MIN_YEAR <= n <= MAX_YEAR, ) - semester = Semester.customInit(label=semester_label, year=semester_year) + semester = Semester(label=semester_label, year=semester_year) db.session.add(semester) diff --git a/advlabdb/scripts/test/test_database.py b/advlabdb/scripts/test/test_database.py index 2708a5b..d33bd68 100644 --- a/advlabdb/scripts/test/test_database.py +++ b/advlabdb/scripts/test/test_database.py @@ -20,8 +20,8 @@ def main(): db.session.add(program2) db.session.add(program3) - sem1 = Semester.customInit(label="SS", year=22) - sem2 = Semester.customInit(label="WS", year=22) + sem1 = Semester(label="SS", year=22) + sem2 = Semester(label="WS", year=22) db.session.add(sem1) db.session.add(sem2)