diff --git a/RptSegregadosFacPagadas/ReporteMensualAmazon.py b/RptSegregadosFacPagadas/ReporteMensualAmazon.py index 0db4629..09b7200 100644 --- a/RptSegregadosFacPagadas/ReporteMensualAmazon.py +++ b/RptSegregadosFacPagadas/ReporteMensualAmazon.py @@ -58,8 +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.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 ") + + cursor.execute("SELECT * from [Clientes.Reporte.Notificaciones] where id = 1 or id = 5 OR TipoReporte = 'RptFacturasPagadas,RptSegregacion' ") rows = cursor.fetchall() # Obtener una lista de correos electrónicos