Skip to content

Commit

Permalink
forgot aftercare argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijtvliet committed Jan 31, 2024
1 parent 56cbba0 commit 75db3ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions belvys/tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def portfolio_pfl(
self._fetch_series(ts_tree, ts_left, ts_right, missing2zero=missing2zero)
ts_trees.append(ts_tree)
# Turn into series.
series_trees = [to_series_tree(ts_tree) for ts_tree in ts_trees]
series_trees = [to_series_tree(ts_tree, self.aftercare) for ts_tree in ts_trees]
if output_as_series:
return series_trees
# Turn into portfolio line.
Expand Down Expand Up @@ -312,7 +312,10 @@ def to_series_tree(ts_tree: TsTree, aftercare: Aftercare) -> SeriesTree:

if isinstance(ts_tree, Dict): # nested
ts_dict = ts_tree
return {name: to_series_tree(subtree) for name, subtree in ts_dict.items()}
return {
name: to_series_tree(subtree, aftercare)
for name, subtree in ts_dict.items()
}

# FlatPfLine.

Expand Down

0 comments on commit 75db3ba

Please sign in to comment.