From 3ec29e216ef9edeca42f4e9f884e308e95bd8139 Mon Sep 17 00:00:00 2001 From: Ruslan Bel'kov Date: Thu, 19 Oct 2023 01:07:41 +0300 Subject: [PATCH] fix: fix options for user select --- src/repositories/users/repository.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/repositories/users/repository.py b/src/repositories/users/repository.py index b5ec11c..d58651e 100644 --- a/src/repositories/users/repository.py +++ b/src/repositories/users/repository.py @@ -25,13 +25,7 @@ def SELECT_USER_BY_ID(id_: int): - return ( - select(User) - .where(User.id == id_) - .options( - selectinload(**_get_options), - ) - ) + return select(User).where(User.id == id_).options(*_get_options) CRUD: AbstractCRUDRepository[