Double json_enviado storage limit from 5000 to 10000 chars
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
cb3b327938
commit
987959a975
@@ -581,7 +581,7 @@ def _guardar_envio(user_id, tipo, factura, json_data, respuesta, ok,
|
||||
user_id, tipo, factura, fecha_inicio, fecha_fin,
|
||||
1, servicios,
|
||||
"success" if ok else "error",
|
||||
json_lib.dumps(json_data, indent=2, ensure_ascii=False)[:5000],
|
||||
json_lib.dumps(json_data, indent=2, ensure_ascii=False)[:10000],
|
||||
respuesta[:1000] if respuesta else "",
|
||||
datetime.now().isoformat(),
|
||||
))
|
||||
|
||||
@@ -213,7 +213,7 @@ async def send_one(
|
||||
str(grupo_rows[0].get("CODCONTRATO", "")),
|
||||
fecha_inicio, fecha_fin, 1, len(grupo_rows),
|
||||
"success" if ok_rda else "error",
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:5000],
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:10000],
|
||||
raw_resp[:2000],
|
||||
msg_tns,
|
||||
datetime.now().isoformat(),
|
||||
@@ -315,7 +315,7 @@ async def send_transaccion(
|
||||
str(grupo_rows[0].get("CODCONTRATO", "")),
|
||||
fecha_inicio, fecha_fin, 1, len(grupo_rows),
|
||||
"success" if ok_rda else "error",
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:5000],
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:10000],
|
||||
raw_resp[:2000], msg_tns,
|
||||
datetime.now().isoformat(),
|
||||
))
|
||||
@@ -425,7 +425,7 @@ async def send_direct(
|
||||
str(grupo_rows[0].get("CODCONTRATO", "")),
|
||||
"2000-01-01", "2099-12-31", 1, len(grupo_rows),
|
||||
"success" if ok_rda else "error",
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:5000],
|
||||
json_lib.dumps(rda_json, ensure_ascii=False)[:10000],
|
||||
raw_resp[:2000], msg_tns, datetime.now().isoformat(),
|
||||
))
|
||||
conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user