generated from nathanwoodburn/python-webserver-template
fix: Update dicord webhook output
All checks were successful
Build Docker / BuildImage (push) Successful in 39s
All checks were successful
Build Docker / BuildImage (push) Successful in 39s
This commit is contained in:
parent
7b7cfa52e8
commit
a70751fdae
@ -152,12 +152,12 @@ def renew_path(path: str):
|
||||
webhook = os.getenv("DISCORD")
|
||||
if webhook:
|
||||
# Parse output
|
||||
message = "Renewing " + data["data"]
|
||||
message = f'Renewing {data["data"]}'
|
||||
if req["error"] != "":
|
||||
message += "\n\nError: " + req["error"]
|
||||
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
|
||||
|
||||
requests.post(webhook, json={"content": json.dumps(message)})
|
||||
requests.post(webhook, json={"content": message})
|
||||
|
||||
return jsonify(output)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user