init mit ersten templates undso

This commit is contained in:
br committed 2022-11-02 21:58:55 +01:00
1 parent 4813ef81ce
commit 761994967d
7 files changed
+189

No files matched your search

Executable
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import sqlite3
connection = sqlite3.connect('vokabeln.db')
with open('schema.sql') as f:
connection.executescript(f.read())
cur = connection.cursor()
cur.execute("INSERT INTO eintraege ( gaszaehler, stromzaehler, wasserzaehler, wetterinfo) VALUES ( ?, ?, ?, ?)",
('', '', '127', 'kalt aber oho')
)
connection.commit()
connection.close()