Commit graph

18 commits

Author SHA1 Message Date
Troll (Hermes Agent)
4b48e0a44f Fix TypeError when revision_count is stored as TEXT
The previous schema migration added revision_count as TEXT. SQLite stores
the default as TEXT, but the app does integer arithmetic on it, causing:

  TypeError: unsupported operand type(s) for -: 'int' and 'str'

- init_db() now adds revision_count as INTEGER.
- app.py casts revision_count to int in play() and revise() and when
  incrementing in revise(), so existing TEXT values also work.

Bump version 0.4.2 -> 0.4.3.
2026-08-05 14:25:07 +00:00
Troll (Hermes Agent)
f5d3d487af Fix 500 on /play/<token>/revise for missing revision_count column
Deployed DBs persisted without the revision_count column / revision_history
table, causing customer revision requests to 500.

- init_db() now migrates existing tables by adding missing columns.
- log_revision() falls back to init_db() on missing table for full repair.
- Bump version 0.4.1 -> 0.4.2.
2026-08-05 13:51:53 +00:00
Troll (Hermes Agent)
3f9de1449c Fix 500 on customer revision when revision_history table is missing
Deployed databases can persist without the revision_history table,
causing /play/<token>/revise to crash with sqlite3.OperationalError.

- log_revision() now creates the table on the fly if it is missing.
- app.py runs init_db() at import time (safe CREATE TABLE IF NOT EXISTS)
  so new deployments auto-create missing tables on startup.

Bump patch version 0.4.0 -> 0.4.1.
2026-08-05 13:42:10 +00:00
Troll (Hermes Agent)
cda4d57859 Add revision history log and music files ZIP backup 2026-08-04 16:54:51 +00:00
Troll (Hermes Agent)
d02d0b3d25 Add stems_link support for Pingvin-Share-X delivery 2026-08-04 01:10:15 +00:00
Troll (Hermes Agent)
e46893e0b4 docs: update comments, docstrings, README, REVIEW, and env docs to match current features 2026-08-03 00:11:41 +00:00
Troll (Hermes Agent)
3e25c3638b feat: add operator-only notes field per request 2026-08-02 22:10:42 +00:00
Troll (Hermes Agent)
2ac99fde8b feat: add /status order lookup page linked from request form 2026-08-02 22:00:27 +00:00
Troll (Hermes Agent)
4af9322c9d docs: update comments and README to reflect current feature set
- Refresh app.py module and route docstrings for runtime settings,
  MP3 tagging, rate limiting, revision workflow, and admin actions.
- Clarify config.py and models.py comments.
- Update template comments/CSS for dashboard filters, request detail,
  player page, and settings page.
- Rewrite README.md with current features, status flow, file layout,
  deployment variables, and troubleshooting.
- Refresh REVIEW.md quick-reference.
- Add MAX_REVISIONS to docker-compose.yml environment list.
- Expand requirements.txt comment coverage.

No version history or changelog included.
2026-08-02 00:07:24 +00:00
Troll (Hermes Agent)
14ed80fe4b Fix dashboard filters: Delivered instead of Done, correct Needs Upload status mapping 2026-08-02 00:02:05 +00:00
Troll (Hermes Agent)
f32efc42c5 Reset request id auto-increment when system reset clears the database 2026-08-01 22:41:14 +00:00
Troll (Hermes Agent)
5b6012aa3d Add vocal gender preference to customer request form and admin view 2026-08-01 21:20:11 +00:00
Troll (Hermes Agent)
0f6b68cf5d Lock customer page after choice, archive files on revision, add file checkboxes for delivery 2026-08-01 21:10:57 +00:00
Troll (Hermes Agent)
b4f0222bd5 Add comprehensive comments to all source files and expand documentation 2026-07-31 22:23:40 +00:00
Troll (Hermes Agent)
c532f1dc1c Add system reset button to admin dashboard with confirmation 2026-07-31 22:02:08 +00:00
Troll (Hermes Agent)
b8f1fee102 Add delete request button to admin dashboard with confirmation and file cleanup 2026-07-31 21:47:45 +00:00
Troll (Hermes Agent)
30732c0b64 Single-paste Hermes response with title extraction and copy buttons 2026-07-31 21:38:38 +00:00
Troll (Hermes Agent)
c16d48ee32 Initial prototype for theme song booth 2026-07-31 19:47:52 +00:00