Updated election_cycle init docstring.
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user