1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Remove Semester.customInit

This commit is contained in:
Mo 2022-05-15 19:07:53 +02:00
parent 102640f14d
commit b351dcf565
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)