Closed busla closed 7 years ago
Hmm, still not running properly, let me add more fixes.
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.
These fixes are required to get the app running.