election_day.formats.exports.election.internal_majorz

Module Contents

Functions

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

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

election_day.formats.exports.election.internal_majorz.export_election_internal_majorz(election: onegov.ballot.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).