(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,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: