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
@@ -48,7 +48,7 @@ class NominateModal(nextcord.ui.Modal):
"""
speech = decorate_nomination(interaction.user.id, self.speech.value)
election_name = get_election_name(settings)
election_name = get_election_name()
with Session(engine) as session:
if not self.usr_nominated:
@@ -105,7 +105,7 @@ class NominateView(nextcord.ui.View):
)
return
election_name = get_election_name(settings)
election_name = get_election_name()
usr_nominated = False
speech_content = ""
with Session(engine) as session: