Fix ato/ase getters

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-08 15:09:39 +01:00
parent aa399adebd
commit 6ea970e1e4

View file

@ -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