From c67fffbc561e226fe6adf6d4b7d8847622fa4e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 19 Aug 2026 14:00:10 +0400 Subject: [PATCH] =?UTF-8?q?v0.0.42:=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=20=D0=B2=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B5=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=D0=B5=D1=82=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=BE=20=D1=83=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20(=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BE=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2=D0=B0=D1=8E=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=B8=20start)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 +- site/templates/index.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/site/app.py b/site/app.py index d7034d2..b94c351 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "0.0.41" +VERSION = "0.0.42" def create_app(): diff --git a/site/templates/index.html b/site/templates/index.html index 671e2f1..ac12186 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -462,6 +462,11 @@ async function uploadFiles() { activeES = new EventSource('/api/process_stream/' + currentSid); activeES.addEventListener('start', function(e) { const d = JSON.parse(e.data); + // Таймер тикает ТОЛЬКО у текущего файла; таймеры остальных останавливаем + for (const k in fileIntervals) { + clearInterval(fileIntervals[k]); + delete fileIntervals[k]; + } fileTimers[d.idx] = performance.now(); fileIntervals[d.idx] = setInterval(function() { const elapsed = ((performance.now() - fileTimers[d.idx]) / 1000).toFixed(1);