Skip to content

Commit

Permalink
Merge pull request #86 from ilyarolf/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ilyarolf authored Dec 27, 2024
2 parents 13506e0 + 0067a4e commit 2c56cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repositories/subcategory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def max_page(category_id: int) -> int:
.where(Item.category_id == category_id,
Item.is_sold == False)
.distinct())
stmt = select(func.count(subquery))
stmt = select(func.count()).select_from(subquery)
async with get_db_session() as session:
maximum_page = await session_execute(stmt, session)
maximum_page = maximum_page.scalar_one()
Expand Down

0 comments on commit 2c56cf9

Please sign in to comment.