Fix migration script and LGTM

This commit is contained in:
Khanh Ngo
2019-12-21 22:26:56 +07:00
parent 7739bf7cfc
commit 4bdd433079
5 changed files with 10 additions and 10 deletions

View File

@ -446,7 +446,7 @@ def confirm_email(token):
return render_template('email_confirmation.html', status=2)
else:
# Confirm email is valid
user.update_confirmed(confirmed=True)
user.update_confirmed(confirmed=1)
current_app.logger.info(
"User email {} confirmed successfully".format(email))
return render_template('email_confirmation.html', status=1)