paypal: Ignore "empty" rows
This commit is contained in:
parent
8b3d4128da
commit
4ed53b5de9
1 changed files with 3 additions and 0 deletions
|
|
@ -262,6 +262,9 @@ class HistoryPage(BasePage):
|
|||
'September', 'October', 'November', 'December']
|
||||
date_format, time_format, months = self.guess_format()
|
||||
for row in self.document.xpath('//table[@id="transactionTable"]/tbody/tr'):
|
||||
if row.xpath('.//td') < 5:
|
||||
continue
|
||||
|
||||
amount = row.xpath('.//td[@headers="gross"]')[-1].text_content().strip()
|
||||
if re.search('\d', amount):
|
||||
currency = Account.get_currency(amount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue