added another missing commit

This commit is contained in:
Lynne Megido 2018-11-14 00:27:26 +10:00
parent 5f2f19519f
commit ed25663054
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

1
web.py
View file

@ -87,6 +87,7 @@ def home():
else:
c.execute("UPDATE data SET avi = %s WHERE client_id = %s AND instance = %s", (session['avi'], session['client_id'], session['instance']))
session['last_avi_update'] = int(time.time())
db.commit()
return render_template("home.html", mabg="background-image:url('{}')".format(session['avi']), ccbg="background-image:url('{}')".format(session['ccavi']))
else:
return redirect(url_for('main'))