election_day.formats.imports.vote.internal ========================================== .. py:module:: election_day.formats.imports.vote.internal Attributes ---------- .. autoapisummary:: election_day.formats.imports.vote.internal.INTERNAL_VOTE_HEADERS Functions --------- .. autoapisummary:: election_day.formats.imports.vote.internal.import_vote_internal Module Contents --------------- .. py:data:: INTERNAL_VOTE_HEADERS :value: ('status', 'type', 'entity_id', 'counted', 'yeas', 'nays', 'invalid', 'empty', 'eligible_voters') .. py:function:: import_vote_internal(vote: onegov.election_day.models.Vote, principal: onegov.election_day.models.Canton | onegov.election_day.models.Municipality, file: IO[bytes], mimetype: str) -> list[onegov.election_day.formats.imports.common.FileImportError] Tries to import the given csv, xls or xlsx file. :return: A list containing errors.