added eco integration

This commit is contained in:
Chinenye Nmoh
2025-07-25 11:53:05 +01:00
parent c50b69e852
commit ca3ca1cac3
6 changed files with 33 additions and 30 deletions
+2
View File
@@ -3,6 +3,7 @@ from flask import current_app
from app.extensions import mail
import pandas as pd
from io import BytesIO
from app.utils.logger import logger
def get_report_data():
"""
@@ -36,5 +37,6 @@ def send_report_email(report_data: list, recipients: list):
with current_app.app_context():
mail.send(msg)
return "Report email sent"