Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.22 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.22 KB

next-vote

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.

Configuration

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 to true and the order in which the options will be displayed are shuffled.
  • question.write_in: Set to true 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 option
    • question.option.description: A body of text (like a platform) above the option
    • question.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