bigbiggerbiggestbot/tests
Danny bc1d44b556 feat: per-user workout numbering (#7)
Display workouts as "#N" based on each user's own ordered list of
non-deleted workouts (rank by timestamp ascending). Global auto-
increment id stays the primary key, used only internally and in
exports. User-visible surfaces now all use the per-user number:
- /history listing
- /delete now accepts the per-user number
- Save confirmations (bot text and Mini App toast)

Deleting a workout renumbers the later ones downward, as expected
for a pure display transform.

New db helpers: get_user_workout_number, resolve_user_number, and
get_workouts now includes user_number per row via SQLite window
function.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 22:32:24 +02:00
..
__init__.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
conftest.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
test_db.py feat: per-user workout numbering (#7) 2026-04-18 22:32:24 +02:00
test_parser.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00