mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] account_statement_import_online_qonto : Remove verify = false in calls to qonto
This commit is contained in:
@@ -54,9 +54,7 @@ class OnlineBankStatementProviderQonto(models.Model):
|
|||||||
def _qonto_get_slug(self):
|
def _qonto_get_slug(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
url = QONTO_ENDPOINT + "/organizations/%7Bid%7D"
|
url = QONTO_ENDPOINT + "/organizations/%7Bid%7D"
|
||||||
response = requests.get(
|
response = requests.get(url, headers=self._qonto_header(), timeout=10)
|
||||||
url, verify=False, headers=self._qonto_header(), timeout=10
|
|
||||||
)
|
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
data = json.loads(response.text)
|
data = json.loads(response.text)
|
||||||
res = {}
|
res = {}
|
||||||
@@ -101,7 +99,6 @@ class OnlineBankStatementProviderQonto(models.Model):
|
|||||||
def _qonto_get_transactions(self, url, params):
|
def _qonto_get_transactions(self, url, params):
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
url,
|
url,
|
||||||
verify=False,
|
|
||||||
params=params,
|
params=params,
|
||||||
headers=self._qonto_header(),
|
headers=self._qonto_header(),
|
||||||
timeout=10,
|
timeout=10,
|
||||||
|
|||||||
Reference in New Issue
Block a user