A Python 3/Flask voting system that makes use of a basic scoring (voting) method to select a restaurant to order lunch from or a game to play (or any number of other things). Can also send reminders and results via Slack messages. Authentication is done via LDAP (so you'll need access to an LDAP server), and votes are stored in an SQLite DB.
- flask
- flask-login
- flask-wtf
- flask-sqlalchemy
- sqlalchemy
- ldap3
- slackutils
Before starting the server for the first time, run db_create.py
.
Start the server with run.py
. By default it will be accessible at localhost:9999
. To make the server world-accessible or for other options, see run.py -h
.
None
- The "Remember Me" option on the login page doesn't seem to work anymore.
- The "Reset" button on the voting page doesn't update the numeric label fields and causes strange behaviour with the JavaScript that does category-wide updates.
The web.py version was ported to Flask with the help of Miguel Grinberg's excellent mega-tutorial.
Written by Gem Newman. GitHub | Blog | Twitter
This work is licensed under Creative Commons BY-NC-SA 3.0.
Fork-and-knife icon by Freepik from Flaticon, licensed under Creative Commons BY 3.0.