paypal: Oops, really fix empty row issue
This commit is contained in:
parent
fae00c0131
commit
8898f7facd
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ 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:
|
||||
if len(row.xpath('.//td')) < 5:
|
||||
continue
|
||||
|
||||
amount = row.xpath('.//td[@headers="gross"]')[-1].text_content().strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue