Some pep8 cleaning
This commit is contained in:
parent
2deca63206
commit
2ab48d4800
4 changed files with 10 additions and 16 deletions
|
|
@ -25,6 +25,7 @@ from weboob.tools.browser2.page import ListElement, ItemElement, method
|
|||
|
||||
__all__ = ['BillsPage']
|
||||
|
||||
|
||||
class FormId(Filter):
|
||||
def filter(self, txt):
|
||||
formid = txt.split("parameters")[1]
|
||||
|
|
@ -45,7 +46,6 @@ class BillsPage(LoggedPage, HTMLPage):
|
|||
obj_label = CleanText('label')
|
||||
obj__formid = FormId(Attr('input', 'onclick'))
|
||||
|
||||
|
||||
def postpredown(self, _id):
|
||||
_id = _id.split("'")[5]
|
||||
form = self.get_form(name="statements_form")
|
||||
|
|
@ -60,8 +60,7 @@ class BillsPage(LoggedPage, HTMLPage):
|
|||
class item(ItemElement):
|
||||
klass = Bill
|
||||
|
||||
def condition(self):
|
||||
return not (u"tous les relev" in CleanText('a[1]')(self.el))
|
||||
condition = lambda self: not (u"tous les relev" in CleanText('a[1]')(self.el))
|
||||
|
||||
obj_label = CleanText('a[1]', replace=[(' ', '-')])
|
||||
obj_id = Format(u"%s-%s", Env('subid'), Field('label'))
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class INGVirtKeyboard(VirtKeyboard):
|
|||
'7': 'fb495b5cf7f46201af0b4977899b56d4',
|
||||
'8': 'e8fea1e1aa86f8fca7f771db9a1dca4d',
|
||||
'9': '82e63914f2e52ec04c11cfc6fecf7e08'
|
||||
}
|
||||
}
|
||||
color = 64
|
||||
|
||||
def __init__(self, basepage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue