Fix multiples results in prompt application
This commit is contained in:
parent
2dd47e745e
commit
7d4e185d02
1 changed files with 3 additions and 4 deletions
|
|
@ -36,11 +36,10 @@ def convert_price(div):
|
|||
|
||||
|
||||
class DetailsPage(BasePage):
|
||||
details = []
|
||||
datebills = []
|
||||
|
||||
def on_loaded(self):
|
||||
|
||||
self.details = []
|
||||
self.datebills = []
|
||||
num = self.document.xpath('//div[@class="infosLigneDetail"]')[0].text
|
||||
num = num.split("-")[2].strip()
|
||||
divnat = self.document.xpath('//div[@class="national"]')[0]
|
||||
|
|
@ -93,9 +92,9 @@ def _get_date(detail):
|
|||
|
||||
|
||||
class HistoryPage(BasePage):
|
||||
calls = []
|
||||
|
||||
def on_loaded(self):
|
||||
self.calls = []
|
||||
for tr in self.document.xpath('//tr'):
|
||||
tds = tr.xpath('td')
|
||||
if tds[0].text == None or tds[0].text == "Date":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue