fix: fixed deleted attr selects showing
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
from sqlalchemy import Select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from models import AttributeSelect
|
||||
@ -10,3 +11,6 @@ class AttrSelectRepository(
|
||||
):
|
||||
session: AsyncSession
|
||||
entity_class = AttributeSelect
|
||||
|
||||
def _process_get_all_stmt(self, stmt: Select) -> Select:
|
||||
return stmt.where(AttributeSelect.is_deleted.is_(False))
|
||||
|
||||
Reference in New Issue
Block a user