diff --git a/utils.py b/utils.py index 2ad31a7..c952810 100644 --- a/utils.py +++ b/utils.py @@ -88,7 +88,7 @@ def get_current_cycle(config: DakinyConfig) -> int: config (DakinyConfig): Config object to use Returns: - int: cycle index for active election. -1 for no active cycle + int: cycle index for active election. None for no active cycle """ today = datetime.today() @@ -100,7 +100,7 @@ def get_current_cycle(config: DakinyConfig) -> int: ): return cycle - return -1 + return None def build_votes_str(config: DakinyConfig) -> str: