In update votes.tally I have used a single SQL statement to fetch all votes according to the quadratic voting rules. I was a little unsure if the SQL statement works so I wrote a script to populate the db with test data and fetch it. The script is now part of the test case test('if votes can be tallied'). The test case gets a little messy and thus I have added comments.
This PR is divided into parts:
update votes.tally
(https://github.com/TimDaub/strikedao.com/pull/120/commits/c3932264098d02a64de47adcbbec228d9806cdf7)add prettier
(https://github.com/TimDaub/strikedao.com/pull/120/commits/7f94abdd3c902c5d4422bccbc80b97ccf86c1f0d and https://github.com/TimDaub/strikedao.com/pull/120/commits/b9b9e3328773db084f92b860a8ef620722ca8fe7)In
update votes.tally
I have used a single SQL statement to fetch all votes according to the quadratic voting rules. I was a little unsure if the SQL statement works so I wrote a script to populate the db with test data and fetch it. The script is now part of the test casetest('if votes can be tallied')
. The test case gets a little messy and thus I have added comments.