Fix session variable name

This commit is contained in:
Sage Vaillancourt 2022-09-24 21:38:00 +00:00
parent b3f56872d7
commit 88bfdb7530
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ def index_post():
body=form.body.data, body=form.body.data,
) )
email = session.get('login') email = session.get('username')
if email: if email:
user = db.get_user(email) user = db.get_user(email)
letters = db.get_user_letters(user.id) letters = db.get_user_letters(user.id)