Update dbt_test_alert.py

This commit is contained in:
Jack Forgash 2023-08-01 09:49:56 -06:00 committed by GitHub
parent c51aa83d0a
commit 4e7b0ea383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ def log_test_result():
def create_message(**kwargs):
messageBody = {
"text": f"Hey{' <@here>' if len(kwargs['messages']['fail']) > 0 else ''}, new DBT test results for :{os.environ.get('DATABASE').split('_DEV')[0]}: {os.environ.get('DATABASE')}",
"text": f"Hey{' <!here>' if len(kwargs['messages']['fail']) > 0 else ''}, new DBT test results for :{os.environ.get('DATABASE').split('_DEV')[0]}: {os.environ.get('DATABASE')}",
"attachments": [
{
"color": kwargs["color"],