@@ -39,18 +39,17 @@ class ElectionCycle:
|
||||
today = datetime.today()
|
||||
|
||||
# check all dates if action is needed
|
||||
match today.date():
|
||||
case self._election_start.date():
|
||||
if today.date() == self._election_start.dat():
|
||||
await self.election_start_action()
|
||||
case self._voting_start.date():
|
||||
elif today.date() == self._voting_start.date():
|
||||
await self.voting_end_action()
|
||||
case self._voting_end.date():
|
||||
elif today.date() == self._voting_end.date():
|
||||
await self.voting_end_action()
|
||||
case self._highcouncil_election.date():
|
||||
elif today.date() == self._highcouncil_election.date():
|
||||
await self.highcouncil_election_action()
|
||||
case self._term_start.date():
|
||||
elif today.date() == self._term_start.date():
|
||||
await self.term_start_action()
|
||||
case self._term_end.date():
|
||||
elif today.date() == self._term_end.date():
|
||||
await self.term_end_action()
|
||||
|
||||
async def election_start_action(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user