init
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user