Compare commits

..

No commits in common. "4e128198b771e79f0115f090c702e25a84cd8200" and "28d0e6fdbfdaea09b7742ed20b2459374add141b" have entirely different histories.

View File

@ -213,14 +213,13 @@ async def send_global_top(message: types.Message):
try:
dicks = dicks_collection.all( )
dicks = [d for d in dicks if d['user_id'] != d['chat_id']]
dicks = [d for d in dicks]
except Exception as e:
print('ошибка DB в /glovaldick')
print(e)
top_dicks = sorted(dicks, key=lambda dick: dick['dick_size'], reverse=True)
dick_limit = min(len(top_dicks), 10)
top_dicks = top_dicks[:dick_limit]