init
This commit is contained in:
@@ -535,6 +535,10 @@ DEFAULT_SETTINGS = [
|
||||
{"key": "painting_cost", "value": "500", "description": "Стоимость покраски (руб/шт)"},
|
||||
{"key": "threading_cost", "value": "200", "description": "Стоимость нарезки резьбы (руб/шт)"},
|
||||
{"key": "acetone_cost", "value": "400", "description": "Стоимость ацетоновой обработки (руб/шт)"},
|
||||
{"key": "ai_use_proxy", "value": "true", "description": "Использовать AI-прокси (true/false)"},
|
||||
{"key": "ai_proxy_url", "value": "", "description": "URL AI-прокси"},
|
||||
{"key": "ai_proxy_salt", "value": "", "description": "Секретная соль для AI-прокси"},
|
||||
{"key": "ai_direct_api_key", "value": "", "description": "Google API Key для прямого подключения"},
|
||||
{"key": "company_name", "value": "Filam3D", "description": "Название компании"},
|
||||
{"key": "company_phone", "value": "", "description": "Телефон компании"},
|
||||
{"key": "company_email", "value": "", "description": "Email компании"},
|
||||
|
||||
@@ -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