election_day.models.election.list
Classes
A list. |
Module Contents
- class election_day.models.election.list.List[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
A list.
- results: sqlalchemy.orm.relationship[list[onegov.election_day.models.election.list_result.ListResult]][source]
- panachage_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.ListPanachageResult]][source]
- panachage_results_lost: sqlalchemy.orm.relationship[list[onegov.election_day.models.ListPanachageResult]][source]
- candidate_panachage_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.CandidatePanachageResult]][source]
- aggregate_results(attribute: str) int [source]
Gets the sum of the given attribute from the results.
- classmethod aggregate_results_expression(attribute: str) sqlalchemy.sql.ColumnElement[int] [source]
Gets the sum of the given attribute from the results, as SQL expression.