Use literal string interpolation in integrations B-D (f-strings) (#26378)
This commit is contained in:
parent
105461edb5
commit
6a24d893c8
52 changed files with 116 additions and 126 deletions
|
@ -73,7 +73,7 @@ class ClicksendNotificationService(BaseNotificationService):
|
|||
}
|
||||
)
|
||||
|
||||
api_url = "{}/sms/send".format(BASE_API_URL)
|
||||
api_url = f"{BASE_API_URL}/sms/send"
|
||||
resp = requests.post(
|
||||
api_url,
|
||||
data=json.dumps(data),
|
||||
|
@ -94,7 +94,7 @@ class ClicksendNotificationService(BaseNotificationService):
|
|||
|
||||
def _authenticate(config):
|
||||
"""Authenticate with ClickSend."""
|
||||
api_url = "{}/account".format(BASE_API_URL)
|
||||
api_url = f"{BASE_API_URL}/account"
|
||||
resp = requests.get(
|
||||
api_url,
|
||||
headers=HEADERS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue