Backend fix checkbox

This commit is contained in:
sriram
2026-09-01 11:25:04 +05:30
parent a6e78fee95
commit 183b65b3bd
4 changed files with 39 additions and 26 deletions

View File

@@ -148,8 +148,12 @@ MODEL_ARTIFACTS_DIR = _dir(
# endpoints - whatever Traefik defaults to is, and it is not ours to rely on.
BATCH_UPLOAD_DIR = _dir("BATCH_UPLOAD_DIR", DATA_DIR / "batch_uploads")
# Per-file limits stay at the single-upload values (10MB / 2000 rows, see
# app/api/routers/store_catalog.py); these bound the BATCH on top of that.
# Per-file limits stay at the single-upload values, 10MB / 2000 rows. They are
# NOT settings and are not read from here: each router declares its own
# MAX_UPLOAD_BYTES / MAX_UPLOAD_ROWS pair with the same two numbers - see
# routers/batch_catalog.py, routers/uploads.py and routers/user_products.py.
# Change one and you have changed one. The ceilings below bound the BATCH on
# top of whichever per-file pair applied.
BATCH_MAX_FILES = int(os.getenv("BATCH_MAX_FILES", "20"))
BATCH_MAX_TOTAL_BYTES = int(os.getenv("BATCH_MAX_TOTAL_BYTES", str(50 * 1024 * 1024)))
BATCH_MAX_TOTAL_ROWS = int(os.getenv("BATCH_MAX_TOTAL_ROWS", "20000"))