Исправлена небольшая ошибка отображения профиля
This commit is contained in:
parent
ca2b476232
commit
fa9f9a2c3e
2
main.py
2
main.py
@ -268,6 +268,8 @@ def profile():
|
|||||||
emotion['is_like'] = 1
|
emotion['is_like'] = 1
|
||||||
emotion_pub.append(emotion)
|
emotion_pub.append(emotion)
|
||||||
message = 'Ваша почта успешно изменена!' if help_arg_2 == 'EditEmail' else ''
|
message = 'Ваша почта успешно изменена!' if help_arg_2 == 'EditEmail' else ''
|
||||||
|
if help_arg_2:
|
||||||
|
help_arg_2 = False
|
||||||
return render_template('profile.html', title='Профиль', pub_post=pub_post, emotion_pub=emotion_pub,
|
return render_template('profile.html', title='Профиль', pub_post=pub_post, emotion_pub=emotion_pub,
|
||||||
message=message)
|
message=message)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user