election_day.formats.imports.vote.ech

Module Contents

Functions

import_votes_ech(...)

Imports all votes in a given eCH-0252 delivery.

election_day.formats.imports.vote.ech.import_votes_ech(principal: Canton | Municipality, delivery: DeliveryV1 | DeliveryV2, session: sqlalchemy.orm.Session) onegov.election_day.formats.imports.common.ECHImportResultType[source]

Imports all votes in a given eCH-0252 delivery.

Deletes votes on the same day not appearing in the delivery.

Returns:

A tuple consisting of a list with errors, a set with updated votes, and a set with deleted votes.