Get renew date on mutli accounts
This commit is contained in:
parent
11f9a6d8a1
commit
7430246c24
1 changed files with 3 additions and 2 deletions
|
|
@ -124,8 +124,9 @@ class DetailsPage(BasePage):
|
|||
return self.datebills
|
||||
|
||||
def get_renew_date(self, subscription):
|
||||
div = self.document.xpath('//div[@class="resumeConso"]')[0]
|
||||
mydate = div.xpath('span[@class="actif"]')[0].text
|
||||
login = subscription._login
|
||||
div = self.document.xpath('//div[@login="%s"]' % login)[0]
|
||||
mydate = div.xpath('.//span[@class="actif"]')[0].text
|
||||
mydate = date(*reversed([int(x) for x in mydate.split("/")]))
|
||||
if mydate.month == 12:
|
||||
mydate = mydate.replace(month=1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue