forked from gergely/calendar-social
[Code Cleanup] Wrap a long line in accounts.py
This commit is contained in:
parent
387b7d83ac
commit
26d58daac4
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user