From df5b93c2446738a2689950a2cd31557b4b5e465b Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 14 Aug 2018 10:43:49 -0400 Subject: [PATCH] rearrange requests alerts conditional check --- atst/routes/requests/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atst/routes/requests/index.py b/atst/routes/requests/index.py index 8f21ad8c..d24e2a2c 100644 --- a/atst/routes/requests/index.py +++ b/atst/routes/requests/index.py @@ -39,8 +39,8 @@ def requests_index(): mapped_requests = [map_request(r) for r in requests] - pending_fv = any(Requests.is_pending_financial_verification(r) for r in requests) and not is_ccpo - pending_ccpo = any(Requests.is_pending_ccpo_approval(r) for r in requests) and not is_ccpo + pending_fv = not is_ccpo and any(Requests.is_pending_financial_verification(r) for r in requests) + pending_ccpo = not is_ccpo and any(Requests.is_pending_ccpo_approval(r) for r in requests) return render_template( "requests.html",