Open chrisjrn opened 8 years ago
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.
update_vote
full_calculate
annotate
The flake8 check here should now be properly placated. Oops
@paltman Can this be merged?
Fixes #137. The previous
update_vote
broke severely on deletion. This optimises the queries done infull_calculate
(to use a singleannotate
) and makesupdate_vote
use the inner query offull_calculate
. Far less weird, far more working.