Исправление документации swagger и ошибок обновления данных

This commit is contained in:
2026-02-25 00:12:09 +03:00
parent e8e3310afa
commit 8e10af0bfd
11 changed files with 39 additions and 16 deletions
+2
View File
@@ -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()