From 438a3cce438580cbb45fd496d2d48eb4db636815 Mon Sep 17 00:00:00 2001 From: hubobel Date: Mon, 14 Jul 2025 18:09:57 +0200 Subject: [PATCH] =?UTF-8?q?erste=20Anpassungen=20f=C3=BCr=20den=20SQL-Expo?= =?UTF-8?q?rt,=20Z1,Z2...Z6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lotto2py.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lotto2py.py b/lotto2py.py index 3982645..9777499 100644 --- a/lotto2py.py +++ b/lotto2py.py @@ -5,7 +5,7 @@ from datetime import datetime wochentag = datetime.today().weekday() - +wochentag = 2 if wochentag == 2: a = "582" elif wochentag == 5: @@ -69,7 +69,7 @@ if match_spiel77: # Super 6 suchen (genau 6 Ziffern) match_super6 = re.search(r"Super\s*6[^0-9]*((?:\d\s*){6})", text) if match_super6: - #super6 = match_super6.group(1) + #super61 = match_super6.group(1) super6 = [int(n) for n in match_super6.group(1).split()] # Ausgabe @@ -79,4 +79,18 @@ print("Superzahl:", superzahl) print("Spiel 77:", spiel77) print("Super 6 :", super6) -notify_telegram(str(datum_woche)+ str(lottozahlen)) +lottozahlen.sort() +ab = 'Z' +cd = 1 +for i in lottozahlen: + print(i) + ef=str((ab+str(cd))) + Lottozahlen[ef] = i + cd = cd +1 +Lottozahlen['Datum'] = datum_woche +Lottozahlen['Superzahl'] = superzahl +Lottozahlen['Spiel77'] = spiel77 +Lottozahlen['Super6'] = super6 +print(Lottozahlen) + +notify_telegram(str(Lottozahlen))