mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-24 00:33:06 +03:00
Фиксы
This commit is contained in:
parent
3e5a3f2f74
commit
cfb61bfc6a
@ -311,6 +311,8 @@ async def top10(message: types.Message):
|
||||
top10_message = ''
|
||||
for user in top10:
|
||||
username = (cursor.execute("SELECT user_name FROM user_list WHERE user_id = ?", (user[0],)).fetchone())[0]
|
||||
if username is None:
|
||||
username = "Аноним"
|
||||
top10_message += f"{username} - {user[1]}\n"
|
||||
#в начале сообщения берём текст из config.ini и вставляем в него топ 10 пользователей
|
||||
await message.reply(
|
||||
|
Loading…
Reference in New Issue
Block a user