Log users who vote
This commit is contained in:
parent
a9a778b4c3
commit
b7ee8faf4d
3
app.py
3
app.py
|
@ -157,6 +157,7 @@ def vote(key):
|
||||||
|
|
||||||
@app.post("/vote/date")
|
@app.post("/vote/date")
|
||||||
def vote_date():
|
def vote_date():
|
||||||
|
log.debug("user = %s", session["user"])
|
||||||
log.debug("form = %s", request.form)
|
log.debug("form = %s", request.form)
|
||||||
meet_id, preferences = get_preferences("date")
|
meet_id, preferences = get_preferences("date")
|
||||||
date_ids = list(preferences.keys())
|
date_ids = list(preferences.keys())
|
||||||
|
@ -226,6 +227,7 @@ def result_date(meet_id):
|
||||||
|
|
||||||
@app.post("/vote/time")
|
@app.post("/vote/time")
|
||||||
def vote_time():
|
def vote_time():
|
||||||
|
log.debug("user = %s", session["user"])
|
||||||
log.debug("form = %s", request.form)
|
log.debug("form = %s", request.form)
|
||||||
meet_id, preferences = get_preferences("time")
|
meet_id, preferences = get_preferences("time")
|
||||||
time_ids = list(preferences.keys())
|
time_ids = list(preferences.keys())
|
||||||
|
@ -293,6 +295,7 @@ def result_time(meet_id):
|
||||||
|
|
||||||
@app.post("/vote/place")
|
@app.post("/vote/place")
|
||||||
def vote_place():
|
def vote_place():
|
||||||
|
log.debug("user = %s", session["user"])
|
||||||
log.debug("form = %s", request.form)
|
log.debug("form = %s", request.form)
|
||||||
meet_id, preferences = get_preferences("place")
|
meet_id, preferences = get_preferences("place")
|
||||||
place_ids = list(preferences.keys())
|
place_ids = list(preferences.keys())
|
||||||
|
|
Loading…
Reference in New Issue