Remove config param from get_election_name().

This commit is contained in:
2024-09-03 16:03:36 -04:00
parent 3b289e74c8
commit 8dc2668f44
6 changed files with 25 additions and 28 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ class VoteSelect(nextcord.ui.StringSelect):
Args:
interaction (Interaction): Interaction with this callback.
"""
election_name = get_election_name(settings)
election_name = get_election_name()
with Session(engine) as session:
stmt = select(ElectionInformation.CouncilVoteMsgId).where(ElectionInformation.ElectionName == election_name)
vote_msg_id = session.scalar(stmt)
@@ -102,7 +102,7 @@ class VoteView(nextcord.ui.View):
)
return
election_name: str = get_election_name(settings)
election_name: str = get_election_name()
with Session(engine) as session:
stmt = (