From 6ea970e1e4b606f9f72ce1b8ebe133576d8eabfb Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 8 Feb 2017 15:09:39 +0100 Subject: [PATCH] Fix ato/ase getters --- dbtools/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbtools/__init__.py b/dbtools/__init__.py index 182be5b..eeca06a 100644 --- a/dbtools/__init__.py +++ b/dbtools/__init__.py @@ -74,14 +74,14 @@ class dbObject: def ato(self, cid): try: self.executeQuery("SELECT ato FROM tokens WHERE cid = %i;" % int(cid)) - return self.cur.fetchone() + return self.cur.fetchone()[0] except: return False def ase(self, cid): try: self.executeQuery("SELECT ase FROM tokens WHERE cid = %i;" % int(cid)) - return self.cur.fetchone() + return self.cur.fetchone()[0] except: return False