use Requests method to check in pending financial verification
This commit is contained in:
parent
5f9b589465
commit
1c101a3c4f
@ -3,7 +3,6 @@ from flask import render_template, g, url_for
|
|||||||
|
|
||||||
from . import requests_bp
|
from . import requests_bp
|
||||||
from atst.domain.requests import Requests
|
from atst.domain.requests import Requests
|
||||||
from atst.models.request_status_event import RequestStatus
|
|
||||||
|
|
||||||
|
|
||||||
def map_request(request):
|
def map_request(request):
|
||||||
@ -34,6 +33,6 @@ def requests_index():
|
|||||||
|
|
||||||
mapped_requests = [map_request(r) for r in requests]
|
mapped_requests = [map_request(r) for r in requests]
|
||||||
|
|
||||||
pending_fv = any(r["status"] == RequestStatus.PENDING_FINANCIAL_VERIFICATION.value for r in mapped_requests)
|
pending_fv = any(Requests.is_pending_financial_verification(r) for r in requests)
|
||||||
|
|
||||||
return render_template("requests.html", requests=mapped_requests, pending_financial_verification=pending_fv)
|
return render_template("requests.html", requests=mapped_requests, pending_financial_verification=pending_fv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user