election_day.models.election.proporz_election ============================================= .. py:module:: election_day.models.election.proporz_election Classes ------- .. autoapisummary:: election_day.models.election.proporz_election.VotesByEntityRow election_day.models.election.proporz_election.ProporzElection Module Contents --------------- .. py:class:: VotesByEntityRow Bases: :py:obj:`NamedTuple` .. py:attribute:: election_id :type: str .. py:attribute:: entity_id :type: int .. py:attribute:: counted :type: bool .. py:attribute:: votes :type: int .. py:class:: ProporzElection Bases: :py:obj:`onegov.election_day.models.election.election.Election`, :py:obj:`onegov.election_day.models.party_result.mixins.PartyResultsCheckMixin`, :py:obj:`onegov.election_day.models.party_result.mixins.HistoricalPartyResultsMixin` Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view). .. py:attribute:: __mapper_args__ .. py:attribute:: list_connections :type: sqlalchemy.orm.relationship[list[onegov.election_day.models.election.list_connection.ListConnection]] .. py:attribute:: lists :type: sqlalchemy.orm.relationship[list[onegov.election_day.models.election.list.List]] .. py:attribute:: party_results :type: sqlalchemy.orm.relationship[list[onegov.election_day.models.party_result.party_result.PartyResult]] .. py:attribute:: party_panachage_results :type: sqlalchemy.orm.relationship[list[onegov.election_day.models.party_result.party_panachage_result.PartyPanachageResult]] .. py:property:: votes_by_entity :type: sqlalchemy.orm.Query[VotesByEntityRow] .. py:property:: votes_by_district :type: sqlalchemy.orm.Query[onegov.election_day.models.election.election.VotesByDistrictRow] .. py:property:: has_lists_panachage_data :type: bool Checks if there are lists panachage data available. .. py:property:: has_candidate_panachage_data :type: bool Checks if there are candidate panachage data available. .. py:property:: relationships_for_historical_party_results :type: onegov.core.types.AppenderQuery[onegov.election_day.models.ElectionRelationship] .. py:method:: clear_results(clear_all: bool = False) -> None Clears all the results.