Updated election_cycle init docstring.
build_develop / build (push) Successful in 1m24s
build_latest / build (push) Successful in 43s

This commit is contained in:
2023-09-14 11:55:08 -04:00
parent fb909c009a
commit f70a7989ae
+5 -6
View File
@@ -20,16 +20,15 @@ class ElectionCycle:
""" """
def __init__(self, cycle: int, config: DakinyConfig, guild: nextcord.Guild) -> None: 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: Args:
election_start (datetime): Date the election cycle starts. cycle (int): Which election cycle this cycle is.
term_start (datetime): Date the term being elected starts. config (DakinyConfig): The entire config object.
term_end (datetime): Date the term being elected ends. guild (nextcord.Guild): The guild that this election is running in.
bot: the discord bot instance
""" """
self.config: DakinyConfig = config self.config: DakinyConfig = config
self.cycle = cycle self.cycle = cycle
self.elecion_cycle = self.config.election_cycles[self.cycle] self.elecion_cycle = self.config.election_cycles[self.cycle]