Skip to content

Commit

Permalink
Add commit to create lecturer
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmmmmo authored Nov 7, 2024
1 parent cd8370b commit fbf7b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rating_api/routes/lecturer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def create_lecturer(
)
if get_lecturer is None:
new_lecturer: Lecturer = Lecturer.create(session=db.session, **lecturer_info.model_dump())
db.session.commit()
return LecturerGet.model_validate(new_lecturer)
raise AlreadyExists(Lecturer, lecturer_info.timetable_id)

Expand Down

0 comments on commit fbf7b84

Please sign in to comment.