tmp: ver respuesta_api tercero fallido

This commit is contained in:
Lizandro Guarnizo
2026-07-22 23:07:57 -05:00
parent 66d44392ee
commit 988ac672e9
+20
View File
@@ -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()