Skip to content

Commit

Permalink
Election Day: Add strategy for majority types in eCH.
Browse files Browse the repository at this point in the history
TYPE: Feature
LINK: OGC-1673
  • Loading branch information
Marc Sommerhalder committed Jul 1, 2024
1 parent d71094f commit d045e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onegov/election_day/formats/imports/election/ech.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ def import_information_delivery(
)
continue

# todo: majority type is missing

for information in group.election_information:
assert information.election
info = information.election
Expand All @@ -216,6 +214,8 @@ def import_information_delivery(
domain='federation',
title_translations={}
)
if not isinstance(election, ProporzElection):
election.majority_type = 'relative'
session.add(election)
if not isinstance(election, cls):
errors.add( # type:ignore[unreachable]
Expand Down

0 comments on commit d045e67

Please sign in to comment.