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
+3 -3
View File
@@ -25,15 +25,15 @@ class ExcelConnector(FileConnector):
try:
self._workbook = pd.ExcelFile(io.BytesIO(raw), engine="openpyxl")
except Exception as exc:
raise ConnectorError(f"could not open Excel file: {exc}") from exc
raise ConnectorError(f"no se pudo abrir el archivo de Excel: {exc}") from exc
self._sheet = sheet_name if sheet_name not in (None, "") else self._workbook.sheet_names[0]
if isinstance(self._sheet, str) and self._sheet not in self._workbook.sheet_names:
raise ConnectorError(f"sheet {self._sheet!r} not found — available: {self._workbook.sheet_names}")
raise ConnectorError(f"no existe la hoja {self._sheet!r} (disponibles: {self._workbook.sheet_names})")
try:
self._df = self._workbook.parse(self._sheet, dtype=object)
except Exception as exc:
raise ConnectorError(f"could not read sheet {self._sheet!r}: {exc}") from exc
raise ConnectorError(f"no se pudo leer la hoja {self._sheet!r}: {exc}") from exc
self._df.columns = [str(c).strip() for c in self._df.columns]
def list_sheets(self) -> list[str]: