Fix exams db
This commit is contained in:
parent
710406c5a5
commit
b26b0b6895
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ def create_exams_database(exams_list):
|
||||||
creator=exam.creator,
|
creator=exam.creator,
|
||||||
created_at=exam.created_at,
|
created_at=exam.created_at,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
session.add(exam_obj)
|
||||||
|
session.commit()
|
||||||
|
|
||||||
def add_grades_to_database(grades_list, smstr):
|
def add_grades_to_database(grades_list, smstr):
|
||||||
with Session(engine) as session:
|
with Session(engine) as session:
|
||||||
|
|
Loading…
Add table
Reference in a new issue