election_day.views.election.list_district

Functions

list_options(→ list[tuple[str, str]])

view_list_by_district(→ onegov.core.types.JSON_ro)

" View the list by district as JSON.

view_election_list_by_district(...)

" View the list as heatmap by district.

view_election_list_by_district_chart(...)

" Embed the heatmap.

Module Contents

election_day.views.election.list_district.list_options(request: onegov.election_day.request.ElectionDayRequest, election: onegov.election_day.models.Election) list[tuple[str, str]][source]
election_day.views.election.list_district.view_list_by_district(self: onegov.election_day.models.List, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.JSON_ro[source]

“ View the list by district as JSON.

election_day.views.election.list_district.view_election_list_by_district(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

“ View the list as heatmap by district.

election_day.views.election.list_district.view_election_list_by_district_chart(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

“ Embed the heatmap.