From 5defae4f51719aa01da3e93743f8173b8f4ece7d Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 30 Nov 2020 15:15:08 +0800 Subject: [PATCH] Added debug ccode --- routes/_hkfcD_motm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/_hkfcD_motm.py b/routes/_hkfcD_motm.py index 3688d01..832f7f4 100644 --- a/routes/_hkfcD_motm.py +++ b/routes/_hkfcD_motm.py @@ -273,6 +273,8 @@ def hkfcD_vote_thanks(): else: identity = randomUrlSuffix(8) user_agent = request.headers.get('User-Agent') + print("Identity: " + identity) + print("User Agent: " + user_agent) warn("Identity and User-Agent set") id_commit = "INSERT INTO motmSessions (sessionID) VALUES ('" + identity + "')" ua_commit = "INSERT INTO motmSessions (userAgent) VALUES ('" + user_agent + "')"