stats: limit results to fit into discord message limit

This commit is contained in:
norohind 2024-10-27 15:13:41 +01:00
parent 991d8f182f
commit a377d084c5
Signed by: norohind
SSH Key Fingerprint: SHA256:SnI4bWnejM2/YEQ5hpH58TUohiQpnjoKN6tXUQlobE0

@ -98,7 +98,8 @@ class PresenceTracker:
'left join activities a on a.id = presence_journal.activity_name_id '
'where user_id = ? '
'group by activity_name_id '
'order by total desc;',
'order by total desc '
'limit 20;',
(user_id,)
).fetchall()