election_day.formats.imports.vote.ech
Functions
| 
 | Imports all votes in a given eCH-0252 delivery. | 
Module Contents
- election_day.formats.imports.vote.ech.import_votes_ech(principal: onegov.election_day.models.Canton | onegov.election_day.models.Municipality, delivery: xsdata_ech.e_ch_0252_1_0.Delivery | xsdata_ech.e_ch_0252_2_0.Delivery, 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.