From b58a8e72d930695370a1a648dfa4bfeac07e50dc Mon Sep 17 00:00:00 2001 From: hyperbel Date: Fri, 19 May 2023 16:59:06 +0200 Subject: [PATCH] database grammar --- database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.py b/database.py index 4150d0f..11d4b11 100644 --- a/database.py +++ b/database.py @@ -35,7 +35,7 @@ def mate_erstellen(): for mate in data: cur.execute('''INSERT INTO mate(mateid, matename, mateanzahl, kofein) VALUES(?, ?, ?, ?)''', - (mate['id'], mate['name'], mate['anzahl'], mate['konfein'])) + (mate['id'], mate['name'], mate['anzahl'], mate['koffein'])) con.commit() cur.close() con.close() @@ -51,4 +51,4 @@ def create_db(): conn.close() if __name__ == "__main__": - print("Use main.py to use program") \ No newline at end of file + print("Use main.py to use program")