Skip to content

Commit cff4117

Browse files
Rohit KumarRohit Kumar
authored andcommitted
Changed config
1 parent 5861316 commit cff4117

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def SlackAlert(msg):
2525
"""
2626
if VERBOSE == "enabled":
2727
msg = msg + " [" + time.strftime("%Y-%m-%d %H:%M:%S") + "]"
28-
requests.post(config['SLACK_STRING'], data={"text": msg})
28+
requests.post(config['SLACK_WEBHOOK'], data={"text": msg})
2929

3030
@app.route("/webhook", methods=['POST'])
3131
def webhook():

config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
PROJECT_PATH: '/Users/rohitcoder/Desktop/DS-Practice/'
2-
SLACK_STRING: 'https://hooks.slack.com/services/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'
1+
PROJECT_PATH: '/home/ubuntu/MyCoolApp/' # Your project source code location
2+
SLACK_WEBHOOK: 'https://hooks.slack.com/services/XXXXXX/YYYYYY/ZZZZZZZZ' # Slack Webhook URL for getting alerts
33
VERBOSE: 'enabled'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy