From aa0593050967412fc35bbd25b4303dccd4e4014c 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/workflows/plugins/hooks/inspirehep/inspire_http_hook.py b/workflows/plugins/hooks/inspirehep/inspire_http_hook.py index 094ff451..15b93fd9 100644 --- a/workflows/plugins/hooks/inspirehep/inspire_http_hook.py +++ b/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, )