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__