election_day.formats.exports.vote.internal

Functions

export_vote_internal(→ list[dict[str, Any]])

Returns all data connected to this vote as list with dicts.

Module Contents

election_day.formats.exports.vote.internal.export_vote_internal(vote: onegov.election_day.models.Vote, locales: Collection[str]) list[dict[str, Any]][source]

Returns all data connected to this vote as list with dicts.

This is meant as a base for json/csv/excel exports. The result is therefore a flat list of dictionaries with repeating values to avoid the nesting of values. Each record in the resulting list is a single ballot result.