Support bills and download operations
This commit is contained in:
parent
8fa430e61f
commit
f33af8ff50
2 changed files with 18 additions and 7 deletions
|
|
@ -120,14 +120,12 @@ class Leclercmobile(BaseBrowser):
|
|||
def iter_bills(self, parentid):
|
||||
if not self.is_on_page(HistoryPage):
|
||||
self.location(self.conso)
|
||||
return self.page.date_bills()
|
||||
return self.page.date_bills(parentid)
|
||||
|
||||
def get_bill(self, id):
|
||||
assert isinstance(id, basestring)
|
||||
|
||||
if not self.is_on_page(HistoryPage):
|
||||
self.location(self.conso)
|
||||
l = self.page.date_bills()
|
||||
parentid = id[0:10]
|
||||
l = self.page.date_bills(parentid)
|
||||
for a in l:
|
||||
if a.id == id:
|
||||
return a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue