From 778e579424725848421eb80379887fbf0db8cdb4 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 13 Oct 2023 23:40:25 +0200 Subject: [PATCH] change variable name --- app/routers/users.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/routers/users.py b/app/routers/users.py index 6c54c04..1f7bc49 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -10,9 +10,8 @@ router = APIRouter() async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]): listUsers = [] user_repository = users.UserRepository(database=database.database) - for fake in user_repository.find_by({}, limit=20, skip=0): - print(fake) - user = users.UserOut(id=fake.id, username=fake.username, disabled=fake.disabled, roles=fake.roles) + for user_index in user_repository.find_by({}, limit=20, skip=0): + user = users.UserOut(id=user_index.id, username=user_index.username, disabled=user_index.disabled, roles=user_index.roles) listUsers.append(user) return listUsers