Skip to content

Commit

Permalink
Merge pull request #3 from teleportx/dev
Browse files Browse the repository at this point in the history
HOTFIX whois stats
  • Loading branch information
teleportx authored Apr 7, 2024
2 parents 671293c + f90e729 commit ef4258a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/admin/whois.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ async def whois_ans(message: types.Message, user_id: int):
else:
last_session_timestamp = last_session_timestamp.end

perdezhs = await SretSession.all().filter(sret_type=SretType.PERNUL).count()
toilets = await SretSession.all().filter(sret_type__in=[SretType.SRET, SretType.DRISHET]).count()
perdezhs = await SretSession.all().filter(user=user, sret_type=SretType.PERNUL).count()
toilets = await SretSession.all().filter(user=user, sret_type__in=[SretType.SRET, SretType.DRISHET]).count()

text = (f'Пользователь *{user.name}* (`{user_id}`)\n\n'
f'Админ: `{user.admin}`\n'
Expand Down

0 comments on commit ef4258a

Please sign in to comment.