pep8 cleaning
This commit is contained in:
parent
492dd1d61a
commit
902ab0a392
1 changed files with 4 additions and 7 deletions
|
|
@ -77,11 +77,11 @@ class Hashmd5(MultiFilter):
|
||||||
concat += u'%s' % value
|
concat += u'%s' % value
|
||||||
return hashlib.md5(concat.encode('utf-8')).hexdigest()
|
return hashlib.md5(concat.encode('utf-8')).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
class INGDate(Date):
|
class INGDate(Date):
|
||||||
monthvalue = {u'janv.': '01', u'févr.': '02', u'mars': '03', u'avr.': '04',
|
monthvalue = {u'janv.': '01', u'févr.': '02', u'mars': '03', u'avr.': '04',
|
||||||
u'mai': '05', u'juin': '06', u'juil.': '07', u'août': '08',
|
u'mai': '05', u'juin': '06', u'juil.': '07', u'août': '08',
|
||||||
u'sept.': '09', u'oct.': '10', u'nov.': '11', u'déc.': '12'
|
u'sept.': '09', u'oct.': '10', u'nov.': '11', u'déc.': '12'}
|
||||||
}
|
|
||||||
|
|
||||||
def filter(self, txt):
|
def filter(self, txt):
|
||||||
if txt == 'hier':
|
if txt == 'hier':
|
||||||
|
|
@ -109,6 +109,7 @@ class INGCategory(Filter):
|
||||||
except:
|
except:
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
|
|
||||||
class AccountsList(LoggedPage, HTMLPage):
|
class AccountsList(LoggedPage, HTMLPage):
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
|
|
@ -129,12 +130,9 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
obj_coming = NotAvailable
|
obj_coming = NotAvailable
|
||||||
obj__jid = Attr('//input[@name="javax.faces.ViewState"]', 'value')
|
obj__jid = Attr('//input[@name="javax.faces.ViewState"]', 'value')
|
||||||
|
|
||||||
|
|
||||||
@method
|
@method
|
||||||
class get_transactions(ListElement):
|
class get_transactions(ListElement):
|
||||||
item_xpath = '//table'
|
item_xpath = '//table'
|
||||||
i = 0
|
|
||||||
|
|
||||||
|
|
||||||
class item(ItemElement):
|
class item(ItemElement):
|
||||||
klass = Transaction
|
klass = Transaction
|
||||||
|
|
@ -147,7 +145,6 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
obj_id = Hashmd5(Field('date'), Field('raw'), Field('amount'))
|
obj_id = Hashmd5(Field('date'), Field('raw'), Field('amount'))
|
||||||
obj_category = INGCategory(Attr('.//td[@class="picto"]/span', 'class'))
|
obj_category = INGCategory(Attr('.//td[@class="picto"]/span', 'class'))
|
||||||
|
|
||||||
|
|
||||||
def condition(self):
|
def condition(self):
|
||||||
if self.el.find('.//td[@class="date"]') is None:
|
if self.el.find('.//td[@class="date"]') is None:
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue