From 35dfa57ba3cb6f05204e064ef0f85c9b3e4a424b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 16 Jul 2026 11:13:15 +0400 Subject: [PATCH] =?UTF-8?q?convert-service:=20=D0=BB=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20img=20(=D0=BA=D0=B0=D0=BA=20?= =?UTF-8?q?=D0=B2=20=D0=A1=D0=B2=D0=B5=D1=80=D0=BA=D0=B5)=20=E2=80=94=20b?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=B7=D0=B0=D0=BA=D1=80=D0=B0=D1=88=D0=B5?= =?UTF-8?q?=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convert-service/app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/convert-service/app.py b/convert-service/app.py index 066677f..4c6e242 100644 --- a/convert-service/app.py +++ b/convert-service/app.py @@ -1,11 +1,15 @@ #!/usr/bin/env python3 """LibreOffice converter — Flask HTTP service. .doc → .docx with UI + API.""" -import subprocess, tempfile, os +import subprocess, tempfile, os, base64 from flask import Flask, request, send_file, render_template_string app = Flask(__name__) VERSION = "1.0.0" +# Логотип как data URI (как в Сверке — через img, не inline SVG) +_LOGO_SVG = """""" +LOGO_DATA_URI = "data:image/svg+xml;base64," + base64.b64encode(_LOGO_SVG.encode()).decode() + HTML = """ @@ -49,7 +53,7 @@ h1{font-size:22px;font-weight:700;margin-bottom:6px}
- + Nubes КОНВЕРТЕР v__VERSION__