When balance is zero, paypal add a class to the div
This commit is contained in:
parent
2aa44acd20
commit
8ce5602a72
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class NewAccountPage(Page):
|
|||
# Primary currency account
|
||||
primary_account = Account()
|
||||
primary_account.type = Account.TYPE_CHECKING
|
||||
balance = self.parser.tocleanstring(content.xpath('.//div[contains(@class, "col-md-6 available")]')[0])
|
||||
balance = self.parser.tocleanstring(content.xpath('//div[contains(@class, "col-md-6")][contains(@class, "available")]')[0])
|
||||
primary_account.currency = Account.get_currency(balance)
|
||||
primary_account.id = unicode(primary_account.currency)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue