Fix ato/ase getters
This commit is contained in:
parent
aa399adebd
commit
6ea970e1e4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue