[Code Cleanup] Wrap a long line in accounts.py

This commit is contained in:
Gergely Polonkai 2018-07-23 09:46:03 +02:00
parent 387b7d83ac
commit 26d58daac4

View File

@ -230,6 +230,8 @@ class AccountBlueprint(Blueprint, RoutedMixin):
flash(_('Cant invalidate your current session')) flash(_('Cant invalidate your current session'))
else: else:
current_app.session_interface.delete_session(sid) current_app.session_interface.delete_session(sid)
current_user.active_sessions = [sess_id for sess_id in current_user.active_sessions if sess_id != sid] current_user.active_sessions = [sess_id
for sess_id in current_user.active_sessions
if sess_id != sid]
return redirect(url_for('account.active_sessions')) return redirect(url_for('account.active_sessions'))