Fix instruction retrieval

This commit is contained in:
Klaus-Uwe Mitterer 2016-11-25 21:18:02 +01:00
parent 0723e49918
commit 4a8f3bb698

View file

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