From 4a8f3bb6987b0ade52548984cd4aec7c6cc9f002 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 25 Nov 2016 21:18:02 +0100 Subject: [PATCH] Fix instruction retrieval --- src/database/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/__init__.py b/src/database/__init__.py index fc4459c..e1c93d4 100644 --- a/src/database/__init__.py +++ b/src/database/__init__.py @@ -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))