Correct election name mixup. Use the highcouncil build string.

This commit is contained in:
2023-12-17 13:52:57 -05:00
parent 55259a2653
commit 09ad45c897
3 changed files with 9 additions and 10 deletions
+4 -1
View File
@@ -21,6 +21,7 @@ from database_setup.sql_data_classes import (
engine,
)
from utils import (
build_highcouncil_votes_str,
build_votes_str,
get_cl_election_name,
get_datetime,
@@ -304,8 +305,10 @@ class ElectionCycle:
election_thread: nextcord.Thread = self.guild.get_thread(
self.get_election_info().ThreadId
)
await election_thread.send(message)
vote_msg = await election_thread.send(
message, view=VoteHighcouncilView(self.config, self.guild)
build_highcouncil_votes_str(self.config),
view=VoteHighcouncilView(self.config, self.guild),
)
with Session(engine) as session: