election_day.formats.imports.vote.ech ===================================== .. py:module:: election_day.formats.imports.vote.ech Functions --------- .. autoapisummary:: election_day.formats.imports.vote.ech.import_votes_ech Module Contents --------------- .. py:function:: 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 Imports all votes in a given eCH-0252 delivery. Deletes votes on the same day not appearing in the delivery. :return: A tuple consisting of a list with errors, a set with updated votes, and a set with deleted votes.