Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas committed Aug 8, 2019
1 parent 6cfa318 commit e41a98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onegov/election_day/formats/election/wabstic_majorz.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ def has_no_lines(lines, filename):

try:
entity_id = get_entity_id(line)
candidate_id = line.knr
candidate_id = validate_column(line, 'knr')
assert candidate_id in added_candidates
votes = int(line.stimmen) if line.stimmen else 0
votes = validate_integer(line, 'stimmen')
except (ValueError, AssertionError):
line_errors.append(_("Invalid candidate results"))
else:
Expand Down

0 comments on commit e41a98e

Please sign in to comment.