This commit is contained in:
xds
2026-03-22 14:52:10 +03:00
parent 466a27907a
commit b3e9f62db3
9 changed files with 133 additions and 52 deletions

View File

@@ -56,7 +56,7 @@ async def calculate(
logger.info("Params: material_id=%d, infill=%d%%, layer=%.2fmm, qty=%d, color='%s', multicolor=%s, post_processing='%s'",
material_id, infill_percent, layer_height_mm, quantity, color, multicolor, post_processing)
if not 10 <= infill_percent <= 100:
if not 5 <= infill_percent <= 100:
logger.warning("Invalid infill_percent: %d", infill_percent)
raise HTTPException(400, "infill_percent должен быть от 10 до 100")
if not 0.08 <= layer_height_mm <= 0.4: