fix internationals calls
This commit is contained in:
parent
7f290ef512
commit
dcecf61f46
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class HistoryPage(BasePage):
|
||||||
mydate = date(*reversed([int(x) for x in tds[0].text.split(' ')[0].split("/")]))
|
mydate = date(*reversed([int(x) for x in tds[0].text.split(' ')[0].split("/")]))
|
||||||
mytime = time(*[int(x) for x in tds[0].text.split(' ')[1].split(":")])
|
mytime = time(*[int(x) for x in tds[0].text.split(' ')[1].split(":")])
|
||||||
detail.datetime = datetime.combine(mydate, mytime)
|
detail.datetime = datetime.combine(mydate, mytime)
|
||||||
detail.label = tds[1].text.lstrip().rstrip() + " " + tds[2].text.lstrip().rstrip() + " " + tds[3].text.lstrip().rstrip()
|
detail.label = u' '.join([unicode(td.text.strip()) for td in tds[1:4] if td.text is not None])
|
||||||
try:
|
try:
|
||||||
detail.price = Decimal(tds[4].text[0:4].replace(',', '.'))
|
detail.price = Decimal(tds[4].text[0:4].replace(',', '.'))
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue