Remove config param from build_highcouncil_votes_str().
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ class Election:
|
|||||||
election_thread: nextcord.Thread = self.guild.get_thread(self.get_election_info().ThreadId)
|
election_thread: nextcord.Thread = self.guild.get_thread(self.get_election_info().ThreadId)
|
||||||
await election_thread.send(message)
|
await election_thread.send(message)
|
||||||
vote_msg = await election_thread.send(
|
vote_msg = await election_thread.send(
|
||||||
build_highcouncil_votes_str(settings, self.guild),
|
build_highcouncil_votes_str(self.guild),
|
||||||
view=VoteHighcouncilView(self.guild),
|
view=VoteHighcouncilView(self.guild),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class VoteSelect(nextcord.ui.StringSelect):
|
|||||||
session.execute(stmt)
|
session.execute(stmt)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
vote_message_str = build_highcouncil_votes_str(settings, interaction.guild)
|
vote_message_str = build_highcouncil_votes_str(interaction.guild)
|
||||||
vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id)
|
vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id)
|
||||||
await vote_msg.edit(content=vote_message_str)
|
await vote_msg.edit(content=vote_message_str)
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ def build_votes_str(guild: nextcord.Guild) -> str:
|
|||||||
return votes_str
|
return votes_str
|
||||||
|
|
||||||
|
|
||||||
def build_highcouncil_votes_str(config: DakinySettings, guild: nextcord.Guild) -> str:
|
def build_highcouncil_votes_str(guild: nextcord.Guild) -> str:
|
||||||
"""
|
"""
|
||||||
Creates a string that contains all high council nominees and their votes to be sent as a discord message.
|
Creates a string that contains all high council nominees and their votes to be sent as a discord message.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user