Fix tests
This commit is contained in:
parent
be44d5f8db
commit
c2dbbc4784
@ -32,15 +32,19 @@ def portfolio():
|
|||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
active_task_orders = [
|
if not portfolio is None:
|
||||||
task_order for task_order in portfolio.task_orders if task_order.is_active
|
active_task_orders = [
|
||||||
]
|
task_order for task_order in portfolio.task_orders if task_order.is_active
|
||||||
funding_end_date = (
|
]
|
||||||
sorted(active_task_orders, key=attrgetter("end_date"))[-1].end_date
|
funding_end_date = (
|
||||||
if active_task_orders
|
sorted(active_task_orders, key=attrgetter("end_date"))[-1].end_date
|
||||||
else None
|
if active_task_orders
|
||||||
)
|
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