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,