Found niche bug when testing. Need to get election cycle here because election cycle might be different than current cycle.
build_develop / build (push) Failing after 19s

This commit is contained in:
2024-05-16 16:41:36 -04:00
parent 1e1407c918
commit 3890c30d1f
+3 -1
View File
@@ -59,7 +59,9 @@ def get_election_cycle_name(config: DakinyConfig) -> str:
str: the name of the election cycle
"""
return f"vote-{get_cycle_name(config)}"
cycle = get_current_election_cycle(config)
current_cycle = config.election_cycles[cycle]
return f"vote-{get_datetime(current_cycle.term_start).year}-{current_cycle.name}"
def get_cycle_name(config: DakinyConfig) -> str: