From 8208f601d6c603700199e84cfe67d24b557594cb Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 22 Dec 2021 08:18:40 +0200 Subject: [PATCH] (stats): Remove dynamic field-reordering. --- bot/modules/study/stats_cmd.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bot/modules/study/stats_cmd.py b/bot/modules/study/stats_cmd.py index 8e4bde59..29e412e6 100644 --- a/bot/modules/study/stats_cmd.py +++ b/bot/modules/study/stats_cmd.py @@ -240,13 +240,9 @@ async def cmd_stats(ctx): ["{:02}:{:02}".format(t // 3600, (t // 60) % 60) for t in reversed(study_times)] ) - # The order they are added depends on the size of the stats table - if len(stats) >= 4: - embed.add_field(name="Statistics", value=stats_table) - embed.add_field(name="Study Time", value=time_table) - else: - embed.add_field(name="Study Time", value=time_table) - embed.add_field(name="Statistics", value=stats_table) + # Populate the embed + embed.add_field(name="Study Time", value=time_table) + embed.add_field(name="Statistics", value=stats_table) # Add the study league field if current_badge or next_badge: