election_day.formats.imports.vote.internal

Attributes

INTERNAL_VOTE_HEADERS

Functions

import_vote_internal(...)

Tries to import the given csv, xls or xlsx file.

Module Contents

election_day.formats.imports.vote.internal.INTERNAL_VOTE_HEADERS = ('status', 'type', 'entity_id', 'counted', 'yeas', 'nays', 'invalid', 'empty', 'eligible_voters')[source]
election_day.formats.imports.vote.internal.import_vote_internal(vote: onegov.election_day.models.Vote, principal: Canton | Municipality, file: IO[bytes], mimetype: str) list[onegov.election_day.formats.imports.common.FileImportError][source]

Tries to import the given csv, xls or xlsx file.

Returns:

A list containing errors.