election_day.formats.exports.party_result.internal ================================================== .. py:module:: election_day.formats.exports.party_result.internal Functions --------- .. autoapisummary:: election_day.formats.exports.party_result.internal.export_parties_internal election_day.formats.exports.party_result.internal._export_parties Module Contents --------------- .. py:function:: export_parties_internal(item: onegov.election_day.models.ElectionCompound | onegov.election_day.models.ProporzElection, locales: collections.abc.Collection[str], default_locale: str, json_serializable: bool = False) -> list[dict[str, Any]] Returns all party results with the panachage 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). If `json_serializable` is True, decimals are converted to floats. This might be a lossy conversation! .. py:function:: _export_parties(item: onegov.election_day.models.ElectionCompound | onegov.election_day.models.ProporzElection, locales: collections.abc.Collection[str], default_locale: str, json_serializable: bool = False, domain: str | None = None, domain_segment: str | None = None) -> list[dict[str, Any]] Returns all party results with the panachage 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). If `json_serializable` is True, decimals are converted to floats. This might be a lossy conversation!