From 988ac672e912d6d1aab39a0bd929110e73676e3a Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 22 Jul 2026 23:07:57 -0500 Subject: [PATCH] tmp: ver respuesta_api tercero fallido --- buscar_paciente.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 buscar_paciente.py diff --git a/buscar_paciente.py b/buscar_paciente.py new file mode 100644 index 0000000..5005d7b --- /dev/null +++ b/buscar_paciente.py @@ -0,0 +1,20 @@ +import sqlite3 + +conn = sqlite3.connect("rips_manager.db") +conn.row_factory = sqlite3.Row + +rows = conn.execute(""" + SELECT id, tipo, factura, status, mensaje_tns, respuesta_api, contrato, created_at + FROM envios + WHERE json_enviado LIKE '%88272630%' + ORDER BY created_at DESC + LIMIT 20 +""").fetchall() + +for r in rows: + print(f"--- id={r['id']} tipo={r['tipo']} factura={r['factura']} status={r['status']} fecha={r['created_at']}") + print(f" mensaje_tns: {r['mensaje_tns']}") + print(f" respuesta_api:{r['respuesta_api']}") + print() + +conn.close()