v1.0.158: fix r.OK→r.ok (Python lowercase) + add /convert-doc endpoint

This commit is contained in:
2026-06-23 17:00:49 +04:00
parent ddc0a8b42d
commit a788e9e23d
2 changed files with 44 additions and 4 deletions
+3 -3
View File
@@ -75,7 +75,7 @@
<body>
<div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.157 — Lucee</span></span>
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.158 — Lucee</span></span>
</div>
<div class="content">
@@ -435,8 +435,8 @@ function uploadFile(file, onProgress) {
xhr.onload = function() {
try {
var r = JSON.parse(xhr.responseText);
if (r.OK) resolve(r);
else reject(new Error(r.ERROR || 'Неизвестная ошибка'));
if (r.ok) resolve(r);
else reject(new Error(r.error || 'Неизвестная ошибка'));
} catch(e) { reject(new Error('Некорректный ответ')); }
};
xhr.onerror = function() { reject(new Error('Сеть')); };