From d966ded217872aed9c98e956e57edc3e6f382e0e Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Fri, 12 Jun 2020 12:31:52 +0200 Subject: [PATCH] [bnporc] Remove all method='POST' when using json={} --- modules/bnporc/pp/browser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/bnporc/pp/browser.py b/modules/bnporc/pp/browser.py index 078d71e33b..10376bf7d1 100644 --- a/modules/bnporc/pp/browser.py +++ b/modules/bnporc/pp/browser.py @@ -186,7 +186,7 @@ def change_pass(self, oldpass, newpass): @need_login def get_profile(self): - self.profile.go(json={}, method='POST') + self.profile.go(json={}) profile = self.page.get_profile() if profile: return profile @@ -213,7 +213,7 @@ def iter_accounts(self): pass accounts = list(self.accounts.go().iter_accounts(ibans=ibans)) - self.market_syn.go(json={}, method='POST') # do a post on the given URL + self.market_syn.go(json={}) market_accounts = self.page.get_list() # get the list of 'Comptes Titres' checked_accounts = set() for account in accounts: @@ -286,7 +286,7 @@ def iter_history(self, account, coming=False): if coming: return [] try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning("An Internal Server Error occurred") return [] @@ -372,7 +372,7 @@ def iter_investment(self, account): elif account.type in (account.TYPE_MARKET, account.TYPE_PEA): try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning("An Internal Server Error occurred") return [] @@ -399,7 +399,7 @@ def iter_market_orders(self, account): return [] try: - self.market_list.go(json={}, method='POST') + self.market_list.go(json={}) except ServerError: self.logger.warning('An Internal Server Error occurred') return [] -- GitLab