Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces update_vote with a direct calculation from the database #138

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrisjrn
Copy link

Fixes #137. The previous update_vote broke severely on deletion. This optimises the queries done in full_calculate (to use a single annotate) and makes update_vote use the inner query of full_calculate. Far less weird, far more working.

Fixes pinax#137. The previous `update_vote` broke severely on deletion. This optimises the queries done in `full_calculate` (to use a single `annotate`) and makes `update_vote` use the inner query of `full_calculate`. Far less weird, far more working.
@chrisjrn
Copy link
Author

The flake8 check here should now be properly placated. Oops

@ossanna16
Copy link
Contributor

@paltman Can this be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants