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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user