Wire the Lottoland fallback into the automated update workflow

AutoUpdateAndLearn.update_data() called LottoAPIUpdater with
api_name='github', which skipped the already-implemented Lottoland ->
GitHub -> lottoAPI fallback chain entirely. The GitHub archive alone
has repeatedly lagged 1-6 days behind actual draws (most recently the
Aug 5 draw, still missing as of Aug 7), causing tips to be generated
and models to be retrained on stale data. Switching to api_name='all'
tries Lottoland first, which has consistently had same-day results in
testing, with GitHub still covering full history/fallback.

Also includes the Aug 5 draw pulled in via this fix and the resulting
model retrain (data update was previously interrupted by a truncated
pipe during manual testing, this completes it).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-07 10:55:17 +02:00
co-authored by Claude Sonnet 5
parent 79c4c0d4b3
commit a45092b162
7 changed files with 25 additions and 13 deletions
+4 -1
View File
@@ -125,7 +125,10 @@ class AutoUpdateAndLearn:
try:
updater = LottoAPIUpdater(self.data_file)
success = updater.update(api_name='github', create_backup=True)
# 'all': Lottoland zuerst (liefert die neueste Ziehung meist noch am
# Ziehungstag), GitHub-Archiv als Quelle für die Historie/Fallback -
# das GitHub-Archiv allein hinkt wiederholt tagelang hinterher.
success = updater.update(api_name='all', create_backup=True)
if success:
print(" ✅ Daten erfolgreich aktualisiert")