Write votes to DB again

This commit is contained in:
Jonathan Ervine 2020-11-26 15:14:47 +08:00
parent 0fba68287e
commit b4a12a8a91

View File

@ -260,9 +260,9 @@ def hkfcD_vote_thanks():
else:
### The matchDate has been replaced with the matchNumber - this should be corrected at some point (via a fixture table lookup)
sql3 = "INSERT INTO _motmComments (_matchDate, opposition, comment) VALUES ('" + _matchDate + "', '" + _oppo + "', '" + _fixed_comments + "')"
#sql_write(sql3)
#sql_write(sql)
#sql_write(sql2)
sql_write(sql3)
sql_write(sql)
sql_write(sql2)
resp = make_response(render_template('_hkfcDVoteThanks.html'))
expire_date = datetime.now()
expire_date = expire_date + timedelta(days=90)