Skip to content

Commit

Permalink
Fix query selecting users count from db (osuAkatsuki#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui authored and TrueRou committed May 7, 2024
1 parent c90934a commit 9c1ff28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/repositories/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async def fetch_count(
play_style: int | None = None,
) -> int:
"""Fetch the number of users in the database."""
select_stmt = select(func.count().label("count"))
select_stmt = select(func.count().label("count")).select_from(UsersTable)
if priv is not None:
select_stmt = select_stmt.where(UsersTable.priv == priv)
if country is not None:
Expand Down

0 comments on commit 9c1ff28

Please sign in to comment.