Working version

This commit is contained in:
Eden Kirin
2023-08-27 11:08:14 +02:00
parent 9faca36ce1
commit eb37f09a44
6 changed files with 175 additions and 6 deletions

View File

@ -33,7 +33,7 @@ class Repository(SQLAlchemyAsyncRepository[Machine]):
statement = super()._apply_filters(
*filters, apply_pagination=apply_pagination, statement=statement
)
statement = statement.where(Machine.alive == true())
statement = statement.where(self.model_type.alive == true())
return statement