Add debug warning

This commit is contained in:
Jonathan Ervine 2020-11-30 14:57:08 +08:00
parent a2961e05c5
commit 58cd67cc1a

View File

@ -273,6 +273,7 @@ def hkfcD_vote_thanks():
else:
identity = randomUrlSuffix(8)
user_agent = request.headers.get('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 + "')"
sql_write(id_commit)