From d0e987d0b137a6d0e349f4e2cb9c6bc25f16cbbf Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 30 Dec 2021 22:46:16 +0200 Subject: [PATCH] fix (goals): Order retrieved tasklist. --- bot/modules/stats/goals.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/modules/stats/goals.py b/bot/modules/stats/goals.py index 39b8c254..6cb716f7 100644 --- a/bot/modules/stats/goals.py +++ b/bot/modules/stats/goals.py @@ -113,7 +113,8 @@ async def goals_command(ctx, flags, goal_type): tasklist = task_table.select_where( guildid=ctx.guild.id, userid=ctx.author.id, - weekid=rowid + weekid=rowid, + _extra="ORDER BY taskid ASC" ) max_time = 7 * 16 @@ -127,7 +128,8 @@ async def goals_command(ctx, flags, goal_type): tasklist = task_table.select_where( guildid=ctx.guild.id, userid=ctx.author.id, - monthid=rowid + monthid=rowid, + _extra="ORDER BY taskid ASC" ) max_time = 31 * 16