Fixed sorting on either int or time record.

This commit is contained in:
alwayscompiling
2022-07-03 09:54:14 -04:00
parent c45606a7a4
commit 9e19e10b88
4 changed files with 33 additions and 39 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ def format_highscore_message(boss_name: str):
# Gather all categories and add to string
for key, value in boss_data["categories"].items():
ret_string += f"{key}".ljust(30, " ")
ret_string += f"{key}".ljust(50, " ")
ret_string += "\n"
highscore_size = highscores_config["highscore_size"]
@@ -28,9 +28,9 @@ def format_highscore_message(boss_name: str):
for key, value in boss_data["categories"].items():
if len(value) > i:
score = value[i]
ret_string += f"{i+1}: {score[0]} - {score[1]}".ljust(30, " ")
ret_string += f"{i+1}: {score[0]} - {score[1]}".ljust(50, " ")
else:
ret_string += f"{i+1}: submit your score".ljust(30, " ")
ret_string += f"{i+1}: submit your score".ljust(50, " ")
ret_string += "\n"
return ret_string