Moved table size to table class. Edited table constructor.
This commit is contained in:
+1
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user