Pass config along so that nominate can add to database with election cycle name.

This commit is contained in:
2023-11-02 15:05:48 -04:00
parent 647af0353d
commit 133ff79b94
4 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ def main(cfg: DakinyConfig):
"""When Discord is connected"""
assert bot.user is not None
create_database # pylint: disable=pointless-statement
bot.add_view(NominateView())
bot.add_view(NominateView(cfg))
print(f"{bot.user.name} has connected to Discord!")
# Run Discord bot