From 4aa691c61728bdbcd0ffdc590bda8f3e824b8cdb Mon Sep 17 00:00:00 2001 From: DonHaul Date: Tue, 6 Aug 2024 17:17:53 +0200 Subject: [PATCH] create-ticket: fix request --- .../workflows/plugins/hooks/inspirehep/inspire_http_hook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py b/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py index 094ff451f..15b93fd9f 100644 --- a/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py +++ b/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py @@ -1,4 +1,3 @@ -import json import logging import requests @@ -60,6 +59,6 @@ def call_api(self, method: str, endpoint: str, data: dict) -> Response: _retry_args=self.tenacity_retry_kwargs, endpoint=endpoint, headers=self.headers, - data=json.dumps(data), + data=data, method=method, )