Easily configurable voting system for Next House
Obtain a copy of residents.csv
and drop it in this folder. This file must be updated every time the Next House roster changes. Ask the Housing Chair.
Also, make sure you keep updated nexec
in results.py
when Next Exec changes.
The only file you need to modify is config.js
. Many parameters should be self-explanatory, but I'll describe those which might not be clear:
document
: Set to a URL of a page to be displayed as an iframe. For example, put a link to embed the budget here. Leave blank if not needed.question.shuffle
: Set totrue
and the order in which the options will be displayed are shuffled.question.write_in
: Set totrue
to enable a write-in option.question.option
: Either give a simple string, or an object with the following parameters:question.option.title
: Title of this optionquestion.option.description
: A body of text (like a platform) above the optionquestion.option.wing
: Show option only if user's wing equals this. (Format as "2E", "4W", etc.)
Once you make changes, run validate.py
to make sure this is not malformed json.
Remember to delete results.db when creating a new election