(leaderboards): Update to support sessions.

Use `member_totals` to generate leaderboards instead of `members`.
Fix typo in data coin conversion.
This commit is contained in:
2021-12-04 11:36:52 +02:00
parent bb181d9039
commit 179b6ebf4e
5 changed files with 24 additions and 31 deletions

View File

@@ -57,3 +57,6 @@ def study_time_since(guildid, userid, timestamp):
cursor.callproc('study_time_since', (guildid, userid, timestamp))
rows = cursor.fetchall()
return (rows[0][0] if rows else None) or 0
members_totals = Table('members_totals')