Update highscores.py to use new data classes.
This commit is contained in:
+4
-4
@@ -22,10 +22,10 @@ logger.addHandler(handler)
|
||||
highscores_data: HighscoresData = HighscoresData()
|
||||
highscores_message_map = {}
|
||||
|
||||
for guild in highscores_data.get_guilds():
|
||||
highscores_message_map[guild] = {}
|
||||
for table in highscores_data.get_table_names(guild):
|
||||
message_id = highscores_data.get_table_message_id(guild, table)
|
||||
for guild in highscores_data.guilds:
|
||||
highscores_message_map[guild.guild_id] = {}
|
||||
for table in guild.tables:
|
||||
message_id = table.message_id
|
||||
highscores_message_map[guild][message_id] = table
|
||||
|
||||
submission_objects: dict = {}
|
||||
|
||||
Reference in New Issue
Block a user