election_day.utils.election_compound.list_groups

Classes

ListGroupsRow

Functions

get_list_groups(→ list[ListGroupsRow])

" Get list groups data.

get_list_groups_data(→ onegov.core.types.JSONObject_ro)

" Get the list groups bar chart data as JSON.

Module Contents

class election_day.utils.election_compound.list_groups.ListGroupsRow[source]

Bases: NamedTuple

name: str | None[source]
voters_count: Decimal | int | None[source]
number_of_mandates: int[source]
election_day.utils.election_compound.list_groups.get_list_groups(election_compound: onegov.election_day.models.ElectionCompound) list[ListGroupsRow][source]

“ Get list groups data.

election_day.utils.election_compound.list_groups.get_list_groups_data(election_compound: onegov.election_day.models.ElectionCompound) onegov.core.types.JSONObject_ro[source]

“ Get the list groups bar chart data as JSON.