(stats): Remove dynamic field-reordering.

This commit is contained in:
2021-12-22 08:18:40 +02:00
parent 73e329ee94
commit 8208f601d6

View File

@@ -240,11 +240,7 @@ async def cmd_stats(ctx):
["{:02}:{:02}".format(t // 3600, (t // 60) % 60) for t in reversed(study_times)] ["{: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 # Populate the embed
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="Study Time", value=time_table)
embed.add_field(name="Statistics", value=stats_table) embed.add_field(name="Statistics", value=stats_table)