Skip to content

Commit

Permalink
fix new_report None in sms alert
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm-ll committed Sep 12, 2024
1 parent 2c986c9 commit cd439e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fetch_disputables/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from time import sleep
from decimal import *
from datetime import datetime
from dataclasses import replace

import os

Expand Down Expand Up @@ -483,7 +484,7 @@ async def start(
subject=f"DVM ALERT ({os.getenv('ENV_NAME', 'default')}) - New Report",
msg=format_new_report_message(new_report),
notification_service=notification_service,
sms_message_function=lambda notification_source: alert(all_values, new_report, recipients, from_number, notification_source),
sms_message_function=lambda notification_source: alert(all_values, replace(new_report), recipients, from_number, notification_source),
ses=ses,
slack=slack,
new_report=new_report,
Expand Down Expand Up @@ -537,7 +538,7 @@ async def start(
f"{format_new_report_message(new_report)}"
),
notification_service=notification_service,
sms_message_function=lambda notification_source: alert(all_values, new_report, recipients, from_number, notification_source),
sms_message_function=lambda notification_source: alert(all_values, replace(new_report), recipients, from_number, notification_source),
ses=ses,
slack=slack,
notification_service_results=notification_service_results,
Expand Down

0 comments on commit cd439e8

Please sign in to comment.