Генерация лицензии Custom.mxtpro
Some checks failed
CI / backend (push) Failing after 9s
CI / frontend (push) Failing after 4s

This commit is contained in:
2025-12-01 11:51:00 +00:00
parent b052e82358
commit 68649ba214

View File

@@ -21,7 +21,10 @@ async def generate_license(
- FileResponse: сгенерированный ZIP файл с именем Custom.mxtpro - FileResponse: сгенерированный ZIP файл с именем Custom.mxtpro
""" """
if not name.strip() or not version.strip(): if not name.strip() or not version.strip():
raise HTTPException(status_code=400, detail="NAME и VERSION обязательны.") raise HTTPException(
status_code=400,
detail="NAME и VERSION обязательны."
)
try: try:
# Создаём временный файл на сервере # Создаём временный файл на сервере
filepath, temp_dir = generate_license_file(name, version) filepath, temp_dir = generate_license_file(name, version)