From f08f1f21332a74bef49ba276ccb4b674d6ecf3ea Mon Sep 17 00:00:00 2001 From: petrCher <88943157+petrCher@users.noreply.github.com> Date: Sat, 23 Aug 2025 18:54:21 +0300 Subject: [PATCH] fixed bug --- rating_api/routes/lecturer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rating_api/routes/lecturer.py b/rating_api/routes/lecturer.py index 7ec9f70..ff882bd 100644 --- a/rating_api/routes/lecturer.py +++ b/rating_api/routes/lecturer.py @@ -193,7 +193,7 @@ async def update_lecturer( .one_or_none() ) if check_timetable_id: - raise AlreadyExists(Lecturer.timetable_id, lecturer_info.timetable_id) + raise AlreadyExists(Lecturer, lecturer_info.timetable_id) result = LecturerGet.model_validate( Lecturer.update(lecturer.id, **lecturer_info.model_dump(exclude_unset=True), session=db.session)