diff --git a/modules/spirica/pages.py b/modules/spirica/pages.py index 3bb1bba3976cb43c24caf5fc41eaa14fb72fcd1a..f64dd434eb87b5c7acb0eb7ec43562dff7647449 100644 --- a/modules/spirica/pages.py +++ b/modules/spirica/pages.py @@ -208,4 +208,5 @@ def condition(self): def obj_investments(self): investments = [] for table in self.el.xpath('./following-sibling::tr[1]//span[contains(text(), "ISIN")]/ancestor::table[1]'): - investments = sum([investments, list(TableTransactionsInvestment(self.page, el=table)())], []) + investments.extend(TableTransactionsInvestment(self.page, el=table)()) + return investments