diff --git a/backend/app/api/routes/items.py b/backend/app/api/routes/items.py index e325e9b345..fc4be61ff3 100644 --- a/backend/app/api/routes/items.py +++ b/backend/app/api/routes/items.py @@ -18,17 +18,17 @@ def read_items( """ if current_user.is_superuser: - statment = select(func.count()).select_from(Item) - count = session.exec(statment).one() + statement = select(func.count()).select_from(Item) + count = session.exec(statement).one() statement = select(Item).offset(skip).limit(limit) items = session.exec(statement).all() else: - statment = ( + statement = ( select(func.count()) .select_from(Item) .where(Item.owner_id == current_user.id) ) - count = session.exec(statment).one() + count = session.exec(statement).one() statement = ( select(Item) .where(Item.owner_id == current_user.id)