election_day.formats.exports.vote.internal
¶
Module Contents¶
Functions¶
|
Returns all data connected to this vote as list with dicts. |
- election_day.formats.exports.vote.internal.export_vote_internal(vote: onegov.ballot.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.