Bug fixes from testing post_highscore_groups. Command name change.
This commit is contained in:
+2
-2
@@ -175,7 +175,7 @@ def format_highscore_message(group: CategoryGroup) -> str:
|
||||
"""
|
||||
ret_string = f"**{group.GroupName}**\n```"
|
||||
|
||||
stmt = select(Guild).where(Guild.GuildId == Category.GuildId)
|
||||
stmt = select(Guild).where(Guild.GuildId == group.GuildId)
|
||||
guild = session.scalars(stmt).one()
|
||||
|
||||
# Get all categories in the group
|
||||
@@ -266,7 +266,7 @@ def format_highscore_message(group: CategoryGroup) -> str:
|
||||
for string in str_list:
|
||||
# rstrip to clear unneeded spaces
|
||||
# add newline here for each string
|
||||
print(string.rstrip())
|
||||
ret_string += string.rstrip() + "\n"
|
||||
|
||||
return ret_string + "```"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user