change variable name
This commit is contained in:
parent
170f66ce26
commit
778e579424
@ -10,9 +10,8 @@ router = APIRouter()
|
|||||||
async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]):
|
async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]):
|
||||||
listUsers = []
|
listUsers = []
|
||||||
user_repository = users.UserRepository(database=database.database)
|
user_repository = users.UserRepository(database=database.database)
|
||||||
for fake in user_repository.find_by({}, limit=20, skip=0):
|
for user_index in user_repository.find_by({}, limit=20, skip=0):
|
||||||
print(fake)
|
user = users.UserOut(id=user_index.id, username=user_index.username, disabled=user_index.disabled, roles=user_index.roles)
|
||||||
user = users.UserOut(id=fake.id, username=fake.username, disabled=fake.disabled, roles=fake.roles)
|
|
||||||
listUsers.append(user)
|
listUsers.append(user)
|
||||||
return listUsers
|
return listUsers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user