lint(minor): fix all remaining pylint and prospector errors

This commit is contained in:
Langhammer, Jens
2019-10-01 11:08:56 +02:00
parent 84768c0ec6
commit 7bff2734aa
5 changed files with 11 additions and 16 deletions

View File

@ -32,8 +32,7 @@ def reauth_required(view_function):
if RE_AUTH_KEY not in request.session:
# Timestamp not in session, force user to reauth
return redirect(reverse('account-reauth') + '?' +
urlencode({'next': request.path}))
return redirect(reverse('account-reauth') + '?' + urlencode({'next': request.path}))
if RE_AUTH_KEY in request.session and \
request.session[RE_AUTH_KEY] >= (now - RE_AUTH_MARGAIN) and \