Fix ato/ase getters
This commit is contained in:
parent
aa399adebd
commit
6ea970e1e4
|
@ -74,14 +74,14 @@ class dbObject:
|
||||||
def ato(self, cid):
|
def ato(self, cid):
|
||||||
try:
|
try:
|
||||||
self.executeQuery("SELECT ato FROM tokens WHERE cid = %i;" % int(cid))
|
self.executeQuery("SELECT ato FROM tokens WHERE cid = %i;" % int(cid))
|
||||||
return self.cur.fetchone()
|
return self.cur.fetchone()[0]
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def ase(self, cid):
|
def ase(self, cid):
|
||||||
try:
|
try:
|
||||||
self.executeQuery("SELECT ase FROM tokens WHERE cid = %i;" % int(cid))
|
self.executeQuery("SELECT ase FROM tokens WHERE cid = %i;" % int(cid))
|
||||||
return self.cur.fetchone()
|
return self.cur.fetchone()[0]
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue