diff --git a/classes/election_cycle.py b/classes/election_cycle.py index 5cd8036..3468154 100644 --- a/classes/election_cycle.py +++ b/classes/election_cycle.py @@ -20,16 +20,15 @@ class ElectionCycle: """ def __init__(self, cycle: int, config: DakinyConfig, guild: nextcord.Guild) -> None: - # TODO update """ - Generates all dates relevant to the election cycle from input election start, term start and end dates. + Generates all dates relevant to the election cycle determined by the config and cycle. Args: - election_start (datetime): Date the election cycle starts. - term_start (datetime): Date the term being elected starts. - term_end (datetime): Date the term being elected ends. - bot: the discord bot instance + cycle (int): Which election cycle this cycle is. + config (DakinyConfig): The entire config object. + guild (nextcord.Guild): The guild that this election is running in. """ + self.config: DakinyConfig = config self.cycle = cycle self.elecion_cycle = self.config.election_cycles[self.cycle]