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