From 1121988f53f320bcdbcd61f7f39e9fef4d6f3f78 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Tue, 6 Dec 2016 18:12:18 +0100 Subject: [PATCH] [spirica] fix obj_investments from iter_history The investements were simply not returned --- modules/spirica/pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/spirica/pages.py b/modules/spirica/pages.py index 3bb1bba397..f64dd434eb 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 -- GitLab