diff --git a/calsocial/account.py b/calsocial/account.py index 87d9cde..bebf8cc 100644 --- a/calsocial/account.py +++ b/calsocial/account.py @@ -230,6 +230,8 @@ class AccountBlueprint(Blueprint, RoutedMixin): flash(_('Can’t invalidate your current session')) else: 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'))