Create highcouncil voting views.

This commit is contained in:
2023-12-16 23:01:51 -05:00
parent 8e27e03709
commit a7eafdd52a
3 changed files with 259 additions and 1 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ from sqlalchemy.orm import Session
from classes.nominate_highcouncil_views import NominateHighCouncilView
from classes.nominate_views import NominateView
from classes.voting_highcouncil_views import VoteHighcouncilView
from classes.voting_views import VoteView
from config import DakinyConfig
from database_setup.sql_data_classes import (
@@ -297,7 +298,9 @@ class ElectionCycle:
election_thread: nextcord.Thread = self.guild.get_thread(
self.get_election_info().ThreadId
)
vote_msg = await election_thread.send(message)
vote_msg = await election_thread.send(
message, view=VoteHighcouncilView(self.config, self.guild)
)
with Session(engine) as session:
stmt = select(ElectionInformation).where(