Remove another subquery. Enforce username length.
This commit is contained in:
+2
-1
@@ -226,7 +226,8 @@ def format_highscore_message(group: CategoryGroup) -> str:
|
||||
# add each score to list
|
||||
for ind in range(max_cat_size): # need to subtract to deal with category name string
|
||||
if ind in processed_group.index:
|
||||
username = processed_group["UserName"][ind].ljust(guild.UsernameLength, " ")
|
||||
user_length = guild.UsernameLength
|
||||
username = processed_group["UserName"][ind][:user_length].ljust(user_length, " ")
|
||||
|
||||
# get score, pad to correct length
|
||||
if category.IsTimeRecord:
|
||||
|
||||
Reference in New Issue
Block a user