Fix bug getting ElectionInformation object correctly.
build_develop / build (push) Successful in 1m31s
build_develop / build (push) Successful in 1m31s
This commit is contained in:
@@ -30,7 +30,7 @@ class VoteSelect(nextcord.ui.StringSelect):
|
||||
vote_message_str = build_votes_str(self.config)
|
||||
with Session(engine) as session:
|
||||
stmt = select(ElectionInformation.CouncilVoteMsgId).where(
|
||||
ElectionCycle == get_election_cycle_name(self.config)
|
||||
ElectionInformation.ElectionCycle == get_election_cycle_name(self.config)
|
||||
)
|
||||
vote_msg_id = session.scalar(stmt)
|
||||
vote_msg = await interaction.channel.fetch_message(vote_msg_id)
|
||||
|
||||
Reference in New Issue
Block a user