From c28baa446bd8a3e9f970650775922516d422a291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 17 Jun 2026 23:14:34 +0400 Subject: [PATCH] =?UTF-8?q?v2:=20=D1=87=D0=B0=D0=BD=D0=BA=D0=B8=2030KB=20+?= =?UTF-8?q?=20MD5,=20/v2/chunk=20+=20/v2/finalize,=20Redis,=20worker,=20v2?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 + site/templates/upload.html | 50 +++++---- v2/chunk_api.py | 75 +++++++++++++ v2/chunk_upload.js | 213 +++++++++++++++++++++++++++++++++++++ v2/init.py | 44 ++++++++ v2/worker.py | 51 +++++++++ 6 files changed, 416 insertions(+), 19 deletions(-) create mode 100644 v2/chunk_api.py create mode 100644 v2/chunk_upload.js create mode 100644 v2/init.py create mode 100644 v2/worker.py diff --git a/site/app.py b/site/app.py index 8ce80f4..cf3ae70 100644 --- a/site/app.py +++ b/site/app.py @@ -14,6 +14,7 @@ import mimeutil from test_routes import test_bp from upload import upload_bp from api import api_bp +from v2.chunk_api import bp as v2_bp import redis_client import redis_worker @@ -92,6 +93,7 @@ class ContractsApp: self.app.register_blueprint(test_bp) self.app.register_blueprint(upload_bp) self.app.register_blueprint(api_bp) + self.app.register_blueprint(v2_bp) def _health(self): return "OK", 200, {"Content-Type": "text/plain"} diff --git a/site/templates/upload.html b/site/templates/upload.html index 6281a36..adf3830 100644 --- a/site/templates/upload.html +++ b/site/templates/upload.html @@ -5,6 +5,7 @@ Сверка договоров +