diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Lotto2PY.iml b/.idea/Lotto2PY.iml new file mode 100644 index 0000000..8388dbc --- /dev/null +++ b/.idea/Lotto2PY.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..812ab5a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ecc9268 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/6aus49APP/static/app.js b/6aus49APP/static/app.js new file mode 100644 index 0000000..745f34c --- /dev/null +++ b/6aus49APP/static/app.js @@ -0,0 +1,41 @@ +function renderDrawsTable(data) { + if (!data || !Array.isArray(data.items)) { + return '

Keine Daten

'; + } + const rows = data.items.map(d => ` + + ${d.datum} + ${[d.z1,d.z2,d.z3,d.z4,d.z5,d.z6].map(n => `${n}`).join(' ')} + ${d.sz} + + `).join(''); + return ` +

Treffer: ${data.total}

+ + + + + ${rows} +
DatumZahlenSuperzahl
`; +} + +function renderFrequencyPanels(data) { + const z = (data.zahlen || []).map(x => `${x.zahl}${x.haeufigkeit}`).join(''); + const sz = (data.superzahl || []).map(x => `${x.zahl}${x.haeufigkeit}`).join(''); + return ` +
+

Häufigkeit Zahlen (1–49)

+ + + ${z} +
ZahlHäufigkeit
+
+
+

Häufigkeit Superzahl (0–9)

+ + + ${sz} +
SuperzahlHäufigkeit
+
`; +} + diff --git a/6aus49APP/templates/index.html.bak b/6aus49APP/templates/index.html.bak new file mode 100644 index 0000000..df2bad0 --- /dev/null +++ b/6aus49APP/templates/index.html.bak @@ -0,0 +1,56 @@ + + + + + + 6aus49 – Auswertung + + + + + +

6aus49 – Ziehungen

+ + +
+ + + + +
+ + +
+
+ + +
+ +
+ + diff --git a/datum.py b/datum.py new file mode 100644 index 0000000..6154808 --- /dev/null +++ b/datum.py @@ -0,0 +1,33 @@ +import pymysql + +# --- Verbindung herstellen --- +connection = pymysql.connect( + host='10.0.1.123', + user='hubobel', + password='polier2003', + database='hubobel', + charset='utf8mb4', + cursorclass=pymysql.cursors.Cursor +) + +try: + with connection.cursor() as cursor: + # Beispielwerte + z1, z2, z3, z4, z5 = 10, 22, 38, 42, 48 + + # --- Prüfabfrage: existiert diese Kombination? --- + sql_check = """ + SELECT 1 FROM `euro` + WHERE z1 = %s AND z2 = %s AND z3 = %s AND z4 = %s AND z5 = %s + LIMIT 1 + """ + cursor.execute(sql_check, (z1, z2, z3, z4, z5)) + exists = cursor.fetchone() is not None + + if exists: + print("✅ Kombination existiert bereits.") + else: + print("🆕 Kombination ist neu – kann eingefügt werden.") + +finally: + connection.close() \ No newline at end of file diff --git a/lotto2py.conf b/lotto2py.conf new file mode 100644 index 0000000..6ddbcae --- /dev/null +++ b/lotto2py.conf @@ -0,0 +1,12 @@ +{ + "Telegram": { + "Chat_ID": "322673713", + "TOKEN": "680737840:AAEaa7Vxl_kZz_LWS1_S-lH6Eda7HXqu6Y4" + }, + "mail": { + "mail_folder": "", + "mail_host": "", + "mail_pass": "", + "mail_user": "" + } +} \ No newline at end of file