Skip to content

Commit

Permalink
Format table name in monospace
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Nov 21, 2023
1 parent e9ebb4d commit 8d40aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/dags/database/delete_records/delete_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion catalog/tests/dags/database/test_delete_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -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';`"
)

0 comments on commit 8d40aaf

Please sign in to comment.