feat(sqlalchemy): format backend

This commit is contained in:
Jonathan Rohde
2024-06-27 07:48:08 +02:00
parent 320e658595
commit c134eab27a
21 changed files with 232 additions and 289 deletions
+1 -3
View File
@@ -153,9 +153,7 @@ class ModelsTable:
except:
return None
def update_model_by_id(
self, id: str, model: ModelForm
) -> Optional[ModelModel]:
def update_model_by_id(self, id: str, model: ModelForm) -> Optional[ModelModel]:
try:
# update only the fields that are present in the model
with get_session() as db: