Fix get_bill
This commit is contained in:
parent
eac6f9e684
commit
c71576b7ae
1 changed files with 3 additions and 1 deletions
|
|
@ -98,10 +98,12 @@ class Freemobile(BaseBrowser):
|
|||
|
||||
def get_bill(self, id):
|
||||
assert isinstance(id, basestring)
|
||||
subid = id.split('.')[0]
|
||||
sub = self.get_subscription(subid)
|
||||
|
||||
if not self.is_on_page(DetailsPage):
|
||||
self.location('/moncompte/index.php?page=suiviconso')
|
||||
l = self.page.date_bills()
|
||||
l = self.page.date_bills(sub)
|
||||
for a in l:
|
||||
if a.id == id:
|
||||
return a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue