diff --git a/src/database/__init__.py b/src/database/__init__.py index 38cf0ec..fc4459c 100644 --- a/src/database/__init__.py +++ b/src/database/__init__.py @@ -23,4 +23,5 @@ class Database: def addInstructions(this, pname, ins): cid = "".join(random.choice(string.ascii_lowercase) for i in range(20)) this.cur.execute("INSERT INTO instructions VALUES (?,?,?)", (cid, pname, ins)) + this.commit() return cid