election_day.formats.exports.election.internal_proporz
¶
Module Contents¶
Functions¶
|
Returns all data connected to this election as list with dicts. |
- election_day.formats.exports.election.internal_proporz.export_election_internal_proporz(election: onegov.ballot.models.election.election.Election, locales: Collection[str]) list[dict[str, Any]] [source]¶
Returns all data connected to this election 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 candidate result for each political entity. Party results are not included in the export (since they are not really connected with the lists).