Pass config along so that nominate can add to database with election cycle name.
This commit is contained in:
@@ -7,6 +7,7 @@ from nextcord.ext import commands
|
||||
|
||||
from classes.election_cycle import ElectionCycle
|
||||
from config import DakinyConfig
|
||||
from utils import get_current_cycle
|
||||
|
||||
|
||||
class TestCog(commands.Cog, name="Test commands."):
|
||||
@@ -53,7 +54,7 @@ class TestCog(commands.Cog, name="Test commands."):
|
||||
"""
|
||||
|
||||
config: DakinyConfig = self.bot.config
|
||||
cycle = ElectionCycle(4, config, self.bot.get_guild(config.params.guild_id))
|
||||
cycle = ElectionCycle(get_current_cycle(config), config, self.bot.get_guild(config.params.guild_id))
|
||||
await cycle.election_start_action()
|
||||
|
||||
@test.subcommand()
|
||||
|
||||
Reference in New Issue
Block a user