diff --git a/catalog/dags/database/delete_records/delete_records.py b/catalog/dags/database/delete_records/delete_records.py index d0d81b2630f..5fe0ea0bae5 100644 --- a/catalog/dags/database/delete_records/delete_records.py +++ b/catalog/dags/database/delete_records/delete_records.py @@ -95,7 +95,7 @@ def notify_slack(deleted_records_count: int, table_name: str, select_query: str) """Send a message to Slack.""" text = ( f"Deleted {deleted_records_count:,} records from the" - f" {table_name} table matching query: `{select_query}`" + f" `{table_name}` table matching query: `{select_query}`" ) slack.send_message( text, diff --git a/catalog/tests/dags/database/test_delete_records.py b/catalog/tests/dags/database/test_delete_records.py index ea2f6eba065..caf660685c0 100644 --- a/catalog/tests/dags/database/test_delete_records.py +++ b/catalog/tests/dags/database/test_delete_records.py @@ -252,6 +252,6 @@ def test_delete_no_records_from_media_table( def test_notify_slack(): message = notify_slack.function(123456789, "audio", "WHERE provider='foo';") assert message == ( - "Deleted 123,456,789 records from the audio table matching query: " + "Deleted 123,456,789 records from the `audio` table matching query: " "`WHERE provider='foo';`" )