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