05/23 Phase 22

This commit is contained in:
2026-05-23 17:36:33 -04:00
parent edd2ed5660
commit 59789f3cfe
10 changed files with 358 additions and 23 deletions
+13 -5
View File
@@ -10,9 +10,12 @@ from tkinter import ttk
from datetime import datetime
_SOURCE_NAMES = {
"powerball_ny": "Powerball",
"megamillions_ny": "Mega Millions (NY)",
"megamillions_tx": "Mega Millions (TX)",
"powerball_ny": "Powerball",
"megamillions_ny": "Mega Millions (NY)",
"megamillions_tx": "Mega Millions (TX)",
"cash5_va": "Cash 5 (VA)",
"millionaireforlife_va": "Millionaire for Life (VA)",
"bankamillion_va": "Bank a Million (VA)",
}
@@ -50,5 +53,10 @@ class StatusBar(ttk.Frame):
parts.append(f"{name} — ERROR: {r['message']}")
else:
parts.append(f"{name}{r['added']} added, {r['skipped']} skipped")
text = "Last fetch: " + " | ".join(parts) + f" | {now}"
self.set_text(text)
self._last_fetch_text = "Last fetch: " + " | ".join(parts) + f" | {now}"
self.set_text(self._last_fetch_text)
def append_match_alert(self, msg: str):
"""Append a prediction-match alert to the current status text."""
base = getattr(self, "_last_fetch_text", self._label.cget("text"))
self.set_text(f"{base}{msg}")