05/23 Phase 12

This commit is contained in:
2026-05-23 12:37:01 -04:00
parent 78e88ae8ab
commit ae0c64f731
7 changed files with 172 additions and 1 deletions
+14
View File
@@ -325,6 +325,20 @@ All actions are logged to console and optionally to a log file:
---
### ✅ Phase 12 — Number Search + Next Draw Schedule
- [x] Number search in History screen
- [x] Add `number` param to `get_draws_with_game()` — SQL: `',' || numbers || ',' LIKE ?` for exact boundary matching
- [x] Add "Number:" entry field to History filter bar; bound to `<Return>` for quick search
- [x] Wire through `_apply_filter()` and `_clear_filter()`
- [x] 7 new tests — exact match, boundary false-positive prevention, combined with game/date filter
- [x] Next draw schedule on Dashboard
- [x] `_next_draw_date(game_name, from_date)` — computes next Powerball (Mon/Wed/Sat) or Mega Millions (Tue/Fri) draw date
- [x] Shown on each Last Draw card as "Next draw: Sat, May 24" in green
- [x] 6 new tests — day-of-week transitions, unknown game, always-in-future guarantee
- [x] 227/227 tests passing
---
### ✅ Phase 11 — Saved Predictions Viewer
- [x] Add `delete_prediction(pred_id)` and `delete_all_predictions(game_id=None)` to `db/models.py`
- [x] Refactor `ui/predictor_ui.py` to ttk.Notebook with two tabs