election_day.utils.election.connections

Module Contents

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

Attributes

Sublist

election_day.utils.election.connections.Sublist: typing_extensions.TypeAlias[source]
election_day.utils.election.connections.to_int(value: str) int | str[source]
election_day.utils.election.connections.get_connection_results_api(election: onegov.ballot.models.Election, session: sqlalchemy.orm.Session) onegov.core.types.JSONObject_ro[source]
election_day.utils.election.connections.get_connection_results(election: onegov.ballot.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.ballot.models.Election) onegov.core.types.JSONObject_ro[source]

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