election_day.utils.election.connections ======================================= .. py:module:: election_day.utils.election.connections Attributes ---------- .. autoapisummary:: election_day.utils.election.connections.Sublist Functions --------- .. autoapisummary:: election_day.utils.election.connections.to_int election_day.utils.election.connections.get_connection_results_api election_day.utils.election.connections.get_connection_results election_day.utils.election.connections.get_connections_data Module Contents --------------- .. py:type:: Sublist :canonical: tuple[str, int, str] .. py:function:: to_int(value: str) -> int | str .. py:function:: get_connection_results_api(election: onegov.election_day.models.Election, session: sqlalchemy.orm.Session) -> onegov.core.types.JSONObject_ro .. py:function:: get_connection_results(election: onegov.election_day.models.Election, session: sqlalchemy.orm.Session) -> list[Connection] Returns the aggregated list connection results as list. .. py:function:: get_connections_data(election: onegov.election_day.models.Election) -> onegov.core.types.JSONObject_ro " View the list connections as JSON. Used to for the connection sankey chart.