Add commit to addInstructions
This commit is contained in:
parent
704fd1de57
commit
0723e49918
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue