From 09a9b8b296c66f9c0cde5cc06c8fe88566911dd0 Mon Sep 17 00:00:00 2001 From: hubobel Date: Sun, 20 Jul 2025 09:21:39 +0200 Subject: [PATCH] =?UTF-8?q?Datum=20f=C3=BCr=20die=20Tabelle=20um=20das=20J?= =?UTF-8?q?ahr=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lotto2py.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)