Added debug ccode

This commit is contained in:
Jonathan Ervine 2020-11-30 15:39:59 +08:00
parent 5defae4f51
commit fad4932de5

View File

@ -231,6 +231,7 @@ def hkfcD_vote_thanks():
_fixed_comments = _comments.replace("'", "\\'")
_matchDate = request.form['matchNumber']
_oppo = request.form['oppo']
print(_matchDate)
if _motm and _dotd and request.method == 'POST':
prev_identity = request.cookies.get('sessionID')
@ -272,7 +273,6 @@ def hkfcD_vote_thanks():
return resp
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")