fix
This commit is contained in:
parent
0df4950b8e
commit
4a077e1db9
2
main.py
2
main.py
@ -77,7 +77,7 @@ def point(message: Message):
|
||||
|
||||
@bot.message_handler(commands=['pointers'])
|
||||
def pointers(message: Message):
|
||||
rating = list(mongo.counter_collection.find({"chat_id": message.chat.id}).sort("points", -1))
|
||||
rating = list(mongo.counter_collection.find({"chat_id": message.chat.id, "points": {"$exists": True}}).sort("points", -1))
|
||||
if not rating:
|
||||
bot.send_message(message.chat.id, "Ебаллы пока никому не начислялись")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user