election_day.utils.election.connections

Attributes

Sublist

Functions

to_int(→ int | str)

get_connection_results_api(...)

get_connection_results(→ list[Connection])

Returns the aggregated list connection results as list.

get_connections_data(→ onegov.core.types.JSONObject_ro)

" View the list connections as JSON. Used to for the connection sankey

Module Contents

election_day.utils.election.connections.Sublist: TypeAlias = tuple[str, int, str][source]
election_day.utils.election.connections.to_int(value: str) int | str[source]
election_day.utils.election.connections.get_connection_results_api(election: onegov.election_day.models.Election, session: sqlalchemy.orm.Session) onegov.core.types.JSONObject_ro[source]
election_day.utils.election.connections.get_connection_results(election: onegov.election_day.models.Election, session: sqlalchemy.orm.Session) list[Connection][source]

Returns the aggregated list connection results as list.

election_day.utils.election.connections.get_connections_data(election: onegov.election_day.models.Election) onegov.core.types.JSONObject_ro[source]

“ View the list connections as JSON. Used to for the connection sankey chart.