From b7ee8faf4d21a5e2efa7813c24a4238c9dc48cfd Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 19 Oct 2024 19:30:31 +0200 Subject: [PATCH] Log users who vote --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 2cbdc3c..b0a3177 100644 --- a/app.py +++ b/app.py @@ -157,6 +157,7 @@ def vote(key): @app.post("/vote/date") def vote_date(): + log.debug("user = %s", session["user"]) log.debug("form = %s", request.form) meet_id, preferences = get_preferences("date") date_ids = list(preferences.keys()) @@ -226,6 +227,7 @@ def result_date(meet_id): @app.post("/vote/time") def vote_time(): + log.debug("user = %s", session["user"]) log.debug("form = %s", request.form) meet_id, preferences = get_preferences("time") time_ids = list(preferences.keys()) @@ -293,6 +295,7 @@ def result_time(meet_id): @app.post("/vote/place") def vote_place(): + log.debug("user = %s", session["user"]) log.debug("form = %s", request.form) meet_id, preferences = get_preferences("place") place_ids = list(preferences.keys())