✏ Fix typo in variable names in backend/app/api/routes/items.py
and backend/app/api/routes/users.py
(#711)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
@@ -36,8 +36,8 @@ def read_users(session: SessionDep, skip: int = 0, limit: int = 100) -> Any:
|
||||
Retrieve users.
|
||||
"""
|
||||
|
||||
statment = select(func.count()).select_from(User)
|
||||
count = session.exec(statment).one()
|
||||
count_statement = select(func.count()).select_from(User)
|
||||
count = session.exec(count_statement).one()
|
||||
|
||||
statement = select(User).offset(skip).limit(limit)
|
||||
users = session.exec(statement).all()
|
||||
|
Reference in New Issue
Block a user