strikedao / strikedao.com

Strike DAO is an experiment in participatory governance of blockchain art institutions.
https://strikedao.com
GNU General Public License v3.0
6 stars 1 forks source link

update votes.tally for quadratic voting #120

Closed il3ven closed 2 years ago

il3ven commented 2 years ago

This PR is divided into parts:

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.

TimDaub commented 2 years ago

thanks!