Datum für die Tabelle um das Jahr ergänzt

This commit is contained in:
hubobel 2025-07-20 09:21:39 +02:00
parent 4f3ff5ad3f
commit 09a9b8b296

View file

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