diff --git a/lotto2py.py b/lotto2py.py index 710c8fd..4ca13a9 100644 --- a/lotto2py.py +++ b/lotto2py.py @@ -6,7 +6,8 @@ import pymysql wochentag = datetime.today().weekday() -wochentag = 2 +jahr = datetime.now().year +wochentag = 5 if wochentag == 2: a = "582" elif wochentag == 5: @@ -23,6 +24,8 @@ def notify_telegram(text): requests.post(url, params=params) # Ziel-URL (ARD‑Teletext Mobilseite 581) + + url = "https://www.ard-text.de/mobil/" + str(a) headers = { @@ -95,7 +98,7 @@ for i in lottozahlen: ef=str((ab+str(cd))) Lottozahlen[ef] = i cd = cd +1 -Lottozahlen['Datum'] = datum_woche +Lottozahlen['Datum'] = str(jahr) + ' / ' + str(datum_woche) Lottozahlen['Superzahl'] = superzahl Lottozahlen['Spiel77'] = int(game77) Lottozahlen['Super6'] = int(subber6)