pep8: Various manual fixes
This commit is contained in:
parent
d9065796e9
commit
db1618e86f
11 changed files with 30 additions and 34 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
from weboob.capabilities.bank import Account
|
||||
|
||||
from weboob.exceptions import BrowserIncorrectPassword
|
||||
from weboob.exceptions import BrowserIncorrectPassword
|
||||
from weboob.browser import LoginBrowser, URL, need_login
|
||||
|
||||
from .pages import LoginPage, IndexPage, OperationsPage
|
||||
|
|
@ -58,14 +58,14 @@ class OneyBrowser(LoginBrowser):
|
|||
|
||||
@need_login
|
||||
def iter_history(self, account):
|
||||
post = {'task': 'Synthese', 'process': 'SyntheseCompte', 'taskid':'Releve'}
|
||||
post = {'task': 'Synthese', 'process': 'SyntheseCompte', 'taskid': 'Releve'}
|
||||
self.operations.go(data=post)
|
||||
|
||||
return self.page.iter_transactions(seen=set())
|
||||
|
||||
@need_login
|
||||
def iter_coming(self, account):
|
||||
post = {'task': 'OperationRecente', 'process': 'OperationRecente', 'taskid':'OperationRecente'}
|
||||
post = {'task': 'OperationRecente', 'process': 'OperationRecente', 'taskid': 'OperationRecente'}
|
||||
self.operations.go(data=post)
|
||||
|
||||
return self.page.iter_transactions(seen=set())
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class IndexPage(LoggedPage, HTMLPage):
|
|||
is_here = "//div[@id='situation']"
|
||||
|
||||
def get_balance(self):
|
||||
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
|
||||
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
|
||||
|
||||
|
||||
class OperationsPage(LoggedPage, HTMLPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue