Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 0b890a1

Browse files
committed
format changes
1 parent ad7274d commit 0b890a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/celery/service_callback_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token,
6565
method="POST",
6666
url=service_callback_url,
6767
data=json.dumps(data),
68-
headers={"Content-Type": "application/json", "Authorization": "Bearer {}".format(token)},
68+
headers={"Content-Type": "application/json", "Authorization": f"Bearer {token}"},
6969
cert=ssl_crt,
7070
timeout=5,
7171
)
@@ -74,7 +74,7 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token,
7474
method="POST",
7575
url=service_callback_url,
7676
data=json.dumps(data),
77-
headers={"Content-Type": "application/json", "Authorization": "Bearer {}".format(token)},
77+
headers={"Content-Type": "application/json", "Authorization": f"Bearer {token}"},
7878
timeout=5,
7979
)
8080

0 commit comments

Comments
 (0)