move callback to env

This commit is contained in:
rasmus 2023-08-17 21:13:42 +03:00
parent dcbc392e7c
commit 9b6eb9e10b
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def spam(msg):
if devenv: if devenv:
print(msg) print(msg)
else: else:
url = "https://hooks.slack.com/services/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" url = const.SLACK_CALLBACK
requests.post(url, json={"text": msg }) requests.post(url, json={"text": msg })
def build_query(base_query, fields=[], sort_fields={}): def build_query(base_query, fields=[], sort_fields={}):

View File

@ -18,3 +18,4 @@ INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"]
MONGO_URI = os.environ["MONGO_URI"] MONGO_URI = os.environ["MONGO_URI"]
MEMBERS_HOST = os.environ["MEMBERS_HOST"] MEMBERS_HOST = os.environ["MEMBERS_HOST"]
SLACK_TOKEN = os.environ["SLACK_TOKEN"] SLACK_TOKEN = os.environ["SLACK_TOKEN"]
SLACK_CALLbACK = os.environ["SLACK_CALLBACK"]