From b24938fc6b08fed28193777a41024c4b95c3a181 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Sep 2020 21:06:01 +0200 Subject: [PATCH] stages/consent: fix formatting --- passbook/stages/consent/stage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/passbook/stages/consent/stage.py b/passbook/stages/consent/stage.py index d12955852..dcb7bce0c 100644 --- a/passbook/stages/consent/stage.py +++ b/passbook/stages/consent/stage.py @@ -49,9 +49,7 @@ class ConsentStageView(FormView, StageView): if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context: user = self.executor.plan.context[PLAN_CONTEXT_PENDING_USER] - if UserConsent.filter_not_expired( - user=user, application=application - ).exists(): + if UserConsent.filter_not_expired(user=user, application=application).exists(): return self.executor.stage_ok() # No consent found, show form