Working version
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user