mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix incorrect sorting in stats ca
This commit is contained in:
parent
25f4ac5314
commit
d9d8c6a842
3 changed files with 12 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class Stats(commands.Cog):
|
|||
embed.set_author(name="Channel Activity - {}".format(ctx.guild))
|
||||
|
||||
description = ""
|
||||
for c in sorted(res, key=lambda x: int(x[1]), reverse=True):
|
||||
for c in sorted(res, key=lambda x: float(x[1]), reverse=True):
|
||||
if not any(tc.id == int(c[0]) for tc in ctx.guild.text_channels):
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -218,6 +218,10 @@ class Tasks(commands.Cog):
|
|||
async def beforeSendReminders(self):
|
||||
await self.client.wait_until_ready()
|
||||
|
||||
# TODO
|
||||
async def updateMatchweek(self):
|
||||
pass
|
||||
|
||||
def getCurrentHour(self):
|
||||
return timeFormatters.dateTimeNow().hour
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue