Skip to main content

Models ballot results for OneGov.

Project description

Run the Tests

Install tox and run it:

pip install tox
tox

Limit the tests to a specific python version:

tox -e py27

Conventions

Onegov Ballot follows PEP8 as close as possible. To test for it run:

tox -e pep8

Onegov Ballot uses Semantic Versioning

Build Status

Build Status

Coverage

Project Coverage

Latests PyPI Release

Latest PyPI Release

License

onegov.ballot is released under GPLv2

Changelog

Unreleased

0.6.1 (2016-07-04)

  • Changes the behaviour of the last_result_change function to include the last change of the election/vote, too.

0.6.0 (2016-06-23)

  • Adds the number of allocated mandates to the list connection model. [msom]

0.5.0 (2016-06-10)

  • Adds more information to the election export. [msom]

0.4.2 (2016-03-17)

  • Adds meta columns for elections and votes. [msom]

  • Allows duplicate election and vote titles. [msom]

0.4.1 (2016-03-14)

  • Adds absolute majority for majorz elections. [msom]

0.4.0 (2016-03-07)

  • Adds models for elections. [msom]

0.3.0 (2015-12-15)

  • Enables translation of the votes title in the database. [href]

0.2.0 (2015-12-10)

  • Adds the ability to create an exportable representation of a vote. [href]

0.1.2 (2015-12-08)

  • If nobody votes on an issue the yeas percentage is now assumed to be 0%. Before it was undefined and lead to a division by zero. [href]

  • Changes the votes order to date, domain, shortcode, title. [href]

0.1.1 (2015-10-16)

  • Adds a last_result_change property on the vote, indicating the last time a result was added or changed. [href]

  • Adds a shortcode to each vote for internal reference. [href]

0.1.0 (2015-10-12)

  • Adds the ability to query the votes by year. [href]

  • Removes Python 2.x support. [href]

0.0.5 (2015-10-06)

  • Fixes the counts/results/percentages for votes without results. [href]

  • Yeas/Nays on the vote are no longer simple summations if a counter-proposal is present. In this case, the absolute total is taken from the winning proposition (say the yeas of the proposal or the counter-proposal, but not a merge of the two.). [href]

0.0.4 (2015-08-31)

  • Renames the “yays” to “yeas”, the correct spelling.

0.0.3 (2015-06-26)

  • Remove support for Python 3.3. [href]

  • Adds support for onegov.core.upgrade. [href]

0.0.2 (2015-06-19)

  • Each ballot result now needs a municipality id, a.k.a BFS-Nummer. [href]

0.0.1 (2015-06-18)

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onegov.ballot-0.6.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

onegov.ballot-0.6.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file onegov.ballot-0.6.1.tar.gz.

File metadata

File hashes

Hashes for onegov.ballot-0.6.1.tar.gz
Algorithm Hash digest
SHA256 a7af7aa9275a094b37baec4db43706de1d4ba8680c005c1566a0cb69dd4b7be8
MD5 3c1ceb794174160296e840e66d555a46
BLAKE2b-256 b701ed18738fd9b7a74834c136305dd37186294528e94b7a738c79a13891df58

See more details on using hashes here.

File details

Details for the file onegov.ballot-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for onegov.ballot-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99c1bfdc90048ac9cc098011b69608e038018d160fdba262a3fef983b06ad0d0
MD5 93fdf15dfe017f9ff7aadfbccf75f5d7
BLAKE2b-256 f030666acf8b52eeb25b69702a287648d96f14f8cebccdbf24cedf624df6ea6e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page