diff --git a/RptSegregadosFacPagadas/ReporteMensualAmazon.py b/RptSegregadosFacPagadas/ReporteMensualAmazon.py index 7aa9a52..0db4629 100644 --- a/RptSegregadosFacPagadas/ReporteMensualAmazon.py +++ b/RptSegregadosFacPagadas/ReporteMensualAmazon.py @@ -58,7 +58,8 @@ try: cursor = conn.cursor() # Ejecutar la consulta SQL para obtener los correos electrónicos de la tabla - cursor.execute("SELECT CorreoElectronico FROM [dbo].[Clientes.Amazon.Reporte.Notificaciones] Where Activo = 1 ") + # cursor.execute("SELECT CorreoElectronico FROM [dbo].[Clientes.Reporte.Notificaciones] Where id = 1 or id = 16 ") + cursor.execute("Select CorreoElectronico from [Clientes.Reporte.Notificaciones] where TipoReporte ='RptFacturasPagadas,RptSegregacion' or id = 1 or Id = 5 ") rows = cursor.fetchall() # Obtener una lista de correos electrónicos