Fix instruction retrieval
This commit is contained in:
parent
0723e49918
commit
4a8f3bb698
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Database:
|
|||
|
||||
def getInstructions(this, cid):
|
||||
this.cur.execute("SELECT ins FROM instructions WHERE cid=?", (cid,))
|
||||
return this.cur.fetchone()
|
||||
return this.cur.fetchone()[0]
|
||||
|
||||
def addInstructions(this, pname, ins):
|
||||
cid = "".join(random.choice(string.ascii_lowercase) for i in range(20))
|
||||
|
|
Loading…
Reference in a new issue