Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
snow_tickets: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 6, 2024
1 parent d753d00 commit 9f685ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions workflows/dags/author/author_create/author_create_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def create_author_create_user_ticket(**context: dict) -> None:
"description": "test",
"caller_email": "", # leave empty
}
logger.info("wow")
logger.info(request_data)
response = inspire_http_hook.call_api(
endpoint=endpoint, data=request_data, method="POST"
)
Expand Down
3 changes: 1 addition & 2 deletions workflows/plugins/hooks/inspirehep/inspire_http_hook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import logging

import requests
Expand Down Expand Up @@ -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,
)

0 comments on commit 9f685ba

Please sign in to comment.