mirror of
https://github.com/wowlikon/LiB.git
synced 2026-03-21 23:53:38 +00:00
Исправление документации swagger и ошибок обновления данных
This commit is contained in:
@@ -105,6 +105,8 @@ def update_author(
|
||||
|
||||
update_data = author.model_dump(exclude_unset=True)
|
||||
for field, value in update_data.items():
|
||||
if value is None:
|
||||
continue
|
||||
setattr(db_author, field, value)
|
||||
|
||||
session.commit()
|
||||
|
||||
Reference in New Issue
Block a user