move callback to env
This commit is contained in:
parent
dcbc392e7c
commit
9b6eb9e10b
@ -95,7 +95,7 @@ def spam(msg):
|
||||
if devenv:
|
||||
print(msg)
|
||||
else:
|
||||
url = "https://hooks.slack.com/services/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"
|
||||
url = const.SLACK_CALLBACK
|
||||
requests.post(url, json={"text": msg })
|
||||
|
||||
def build_query(base_query, fields=[], sort_fields={}):
|
||||
|
@ -18,3 +18,4 @@ INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"]
|
||||
MONGO_URI = os.environ["MONGO_URI"]
|
||||
MEMBERS_HOST = os.environ["MEMBERS_HOST"]
|
||||
SLACK_TOKEN = os.environ["SLACK_TOKEN"]
|
||||
SLACK_CALLbACK = os.environ["SLACK_CALLBACK"]
|
||||
|
Loading…
Reference in New Issue
Block a user