From 2117ced19b1bf88c10f569875ed1a9fe81d099ef Mon Sep 17 00:00:00 2001 From: anor Date: Fri, 20 Nov 2026 23:14:14 +1000 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=B2=D1=8B=D0=BF=D1=83=D1=81=D0=BA?= =?UTF-8?q?=202026-11-20d=20=E2=80=94=20=D0=BF=D0=BE=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=D1=87=D1=91=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B8=20=D1=87=D0=B5=D0=BA=D0=B8=20=D0=9D=D0=9F=D0=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- main.py | 2 +- static/changelog.json | 9 +++++++++ tests/test_admin_migrate.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8f93673..d644ce1 100644 --- a/main.py +++ b/main.py @@ -545,7 +545,7 @@ MAX_MESSAGE_LEN = 10_000 # ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква). # Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version). -APP_VERSION = "2026-11-20c" +APP_VERSION = "2026-11-20d" # Audit: path → action name mapping _AUDIT_MAP = [ diff --git a/static/changelog.json b/static/changelog.json index f82f527..a6fa7b8 100644 --- a/static/changelog.json +++ b/static/changelog.json @@ -1,4 +1,13 @@ [ + { + "version": "2026-11-20d", + "date": "2026-11-20", + "changes": [ + "Счёт можно пополнить онлайн: кнопка «Пополнить счёт» в окне остатка и на странице статистики, суммы 500/1 000/3 000/5 000 ₽ или своя", + "Чек НПД формируется автоматически после оплаты и приходит на почту; возврат — в кабинете платёжки и кнопкой «Возврат проведён» в админке" + ] + }, + { "version": "2026-11-20c", "date": "2026-11-20", diff --git a/tests/test_admin_migrate.py b/tests/test_admin_migrate.py index aa5ad28..8391318 100644 --- a/tests/test_admin_migrate.py +++ b/tests/test_admin_migrate.py @@ -54,7 +54,7 @@ def test_dry_run_does_not_create(tmp_path, monkeypatch): def test_topups_index_only_if_table_exists(tmp_path, monkeypatch): db = _db(tmp_path, monkeypatch) with sqlite3.connect(db) as c: - c.execute("CREATE TABLE topups (status TEXT, ts REAL)") + c.execute("CREATE TABLE IF NOT EXISTS topups (status TEXT, ts REAL)") r = mig.run(db) assert r["ok"] is True assert "idx_topups_status_ts" in _indexes(db)