fix: remove undefined facturas_usadas_sesion causing double RDA submission on test-rda
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a94e2cce9f
commit
b4288ac899
@@ -335,8 +335,6 @@ async def test_enviar(request: Request, user: dict = Depends(get_current_user)):
|
|||||||
"respuesta_tns": raw_resp,
|
"respuesta_tns": raw_resp,
|
||||||
"json_enviado": rda_json,
|
"json_enviado": rda_json,
|
||||||
})
|
})
|
||||||
if ok_rda:
|
|
||||||
facturas_usadas_sesion.add(num_factura)
|
|
||||||
db_log = get_connection()
|
db_log = get_connection()
|
||||||
db_log.execute(
|
db_log.execute(
|
||||||
"INSERT OR REPLACE INTO rda_test_log (idrecepcion, factura, contrato, ok, mensaje) VALUES (?,?,?,?,?)",
|
"INSERT OR REPLACE INTO rda_test_log (idrecepcion, factura, contrato, ok, mensaje) VALUES (?,?,?,?,?)",
|
||||||
|
|||||||
Reference in New Issue
Block a user