From 7ec9af84c5f8788c509e306a234852a496cb194f Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Fri, 10 Jul 2026 15:50:24 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20omitir=20pacientes=20sin=20RDAs=20v?= =?UTF-8?q?=C3=A1lidas=20en=20preview=20automation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pacientes cuyos contratos son todos excluidos quedan fuera del listado. Co-Authored-By: Claude Sonnet 4.6 --- app/routes/automation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/automation.py b/app/routes/automation.py index fb9c77c..05d5dba 100644 --- a/app/routes/automation.py +++ b/app/routes/automation.py @@ -168,12 +168,13 @@ async def preview_automation( "rda": rda_por_pac.get(str(p.get("CODIGO", "")), []), } for p in rows_pac + if rda_por_pac.get(str(p.get("CODIGO", ""))) ] return JSONResponse({ "success": True, "fecha": fecha, - "pacientes": len(rows_pac), + "pacientes": len(pacientes_preview), "recepciones": len(grupos), "examenes": total_examenes, "excluidos": excluidos_count,