feat(sqlalchemy): format backend

This commit is contained in:
Jonathan Rohde
2024-06-27 07:48:08 +02:00
parent 2fb27adbf6
commit d88bd51e3c
8 changed files with 153 additions and 142 deletions
+3 -1
View File
@@ -140,7 +140,9 @@ class ModelsTable:
return None
def get_all_models(self) -> List[ModelModel]:
return [ModelModel.model_validate(model) for model in Session.query(Model).all()]
return [
ModelModel.model_validate(model) for model in Session.query(Model).all()
]
def get_model_by_id(self, id: str) -> Optional[ModelModel]:
try: