election_day.formats.exports.election.internal_majorz

Functions

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

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

Module Contents

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