Commit 1121988f authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[spirica] fix obj_investments from iter_history

The investements were simply not returned
parent 4aafce01
......@@ -208,4 +208,5 @@ class DetailsPage(LoggedPage, HTMLPage):
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment