smari / voting

A simulator for voting systems.
27 stars 10 forks source link

app broken, minor fixes to get it running #10

Closed busla closed 7 years ago

busla commented 7 years ago

These fixes are required to get the app running.

busla commented 7 years ago

Hmm, still not running properly, let me add more fixes.

busla commented 7 years ago

Ok, loading presets works now.

There is alot of transformation of data needed before sending to and receiving from the backend. I´m sure this can be optimised somewhat.

Example of transformation of data before POST: https://github.com/busla/voting/blob/master/voting/static/js/ui.js#L595

Example of transformation of data before rendering a preset https://github.com/busla/voting/blob/master/voting/static/js/ui.js#L564

The election results are not working yet but that seems trivial. Will take a look at it tomorrow.

screen shot 2017-09-09 at 21 51 32