Add commit to addInstructions

This commit is contained in:
Klaus-Uwe Mitterer 2016-11-25 21:07:07 +01:00
parent 704fd1de57
commit 0723e49918

View file

@ -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