diff --git a/cost-reporter/src/lambda_function.py b/cost-reporter/src/lambda_function.py index 715f896..a285806 100644 --- a/cost-reporter/src/lambda_function.py +++ b/cost-reporter/src/lambda_function.py @@ -115,6 +115,8 @@ def lambda_handler(event, _): stacked_bar.draw_bars(graph_data, dates, f"{os.environ['TITLE']} (last {days} days)") logging.info("Graph generated") + + # Send the report if necessary if trigger_notification(graph_data): logging.info("Sending message")