Moved table size to table class. Edited table constructor.

This commit is contained in:
alwayscompiling
2022-08-04 10:33:34 -04:00
parent f67eb75c7b
commit d4db9b51f0
4 changed files with 37 additions and 40 deletions
+1 -3
View File
@@ -30,10 +30,8 @@ def format_highscore_message(guild: Guild, table: Table) -> str:
ret_string += f"{category.name}".ljust(26, " ")
ret_string += "\n"
highscore_size = guild.highscore_size
# list rankings in a single line. Start with first place for each category and then continue
for i in range(highscore_size):
for i in range(table.size):
for category in table.categories:
if len(category.scores) > i:
# pad username to max length.