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)