feat: add password-protected calculation admin
This commit is contained in:
1 parent
0cb5889ce2
commit
3d58b4fc9b
10 files changed
+169
-4
No files matched your search
@@ -17,4 +17,5 @@
|
||||
- VK onboarding asks first-time authors for `Имя [ID]`, stores the profile by `from_id` in SQLite, greets by name on later conversations, and accepts `сам`/`несам` as independence shortcuts.
|
||||
- VK `/help` is a neutral FAQ: it explains step-by-step entry, complete commands, separator-free one-line input, confirmation, screenshots, and `/отмена` without audience-specific wording.
|
||||
- Confirmed calculations are persisted through `BELKI_DATABASE_URL` by `app/belki/history.py`; PostgreSQL is the intended production store and SQLite is only a local fallback.
|
||||
- The admin history is served at `/admin`; `/api/admin/calculations` requires `BELKI_ADMIN_PASSWORD` via `X-Admin-Password` and supports sorting by kitten ID/name. The password is configured out-of-band and is not stored in browser localStorage.
|
||||
- The new domain uses 5 minutes = 1 adult point and 5 minutes = 2 kitten points; a non-self-sufficient main kitten gives the adult a 1.5x multiplier and each additional non-self-sufficient kitten adds 0.5x, matching the inspected Google Sheet formulas.
|
||||
Reference in new issue
Block a user