Fix tests
This commit is contained in:
parent
be44d5f8db
commit
c2dbbc4784
@ -32,6 +32,7 @@ def portfolio():
|
|||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not portfolio is None:
|
||||||
active_task_orders = [
|
active_task_orders = [
|
||||||
task_order for task_order in portfolio.task_orders if task_order.is_active
|
task_order for task_order in portfolio.task_orders if task_order.is_active
|
||||||
]
|
]
|
||||||
@ -41,6 +42,9 @@ def portfolio():
|
|||||||
else None
|
else None
|
||||||
)
|
)
|
||||||
funded = len(active_task_orders) > 1
|
funded = len(active_task_orders) > 1
|
||||||
|
else:
|
||||||
|
funding_end_date = None
|
||||||
|
funded = None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"portfolio": portfolio,
|
"portfolio": portfolio,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user