add import audit trail, live indicator recompute, reportes endpoints; production hardening

This commit is contained in:
Roberto Treviño Cervantes
2026-10-30 11:19:30 -06:00
parent 168edb30f5
commit 2b2c290f58
74 changed files with 4095 additions and 1782 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ _MAX_PAGE = 500
def list_rows(target: str):
spec = ENTITY_REGISTRY.get(target)
if spec is None:
return jsonify({"error": f"unknown target: {target!r}"}), 404
return jsonify({"error": f"destino desconocido: {target!r}"}), 404
try:
limit = min(max(int(request.args.get("limit", 50)), 1), _MAX_PAGE)
offset = max(int(request.args.get("offset", 0)), 0)
except ValueError:
return jsonify({"error": "limit/offset must be integers"}), 400
return jsonify({"error": "limit y offset deben ser números enteros"}), 400
rows = spec.repository.list(limit=limit, offset=offset)
return jsonify(
{