Commit 80e99e46 authored by Baptiste Delpey's avatar Baptiste Delpey Committed by Romain Bignon

handle no invest on account

parent 7fbe556a
......@@ -66,6 +66,8 @@ class InvestmentsPage(Page):
def iter_investment(self):
for line in self.document.xpath('//div[@class="supportTable"]//table/tbody/tr'):
tds = line.findall('td')
if len(tds) < 4:
continue
inv = Investment()
inv.vdate = Date(dayfirst=True).filter(CleanText().filter(self.document.xpath( \
'//div[@id="table-evolution-contrat"]//table/tbody/tr[1]/td[1]')))
......
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