def findByNude(self, v): n = MySQL() n.selectDb('images') tbname = 'youyuan_log' n.query("select name from %s where is_nude = %s" % (tbname, v)) return n.fetchAll()
def findByFace(self,v): n = MySQL() n.selectDb('images') tbname = 'images' n.query("select name from %s where is_face = %s" %(tbname,v)) return n.fetchAll()
def findByNude(self,v): n = MySQL() n.selectDb('images') tbname = 'youyuan_log' n.query("select name from %s where is_nude = %s" %(tbname,v)) return n.fetchAll()
def findByFace(self, v): n = MySQL() n.selectDb('images') tbname = 'images' n.query("select name from %s where is_face = %s" % (tbname, v)) return n.fetchAll()
def findAll(self): n = MySQL() n.selectDb('images') tbname = 'youyuan_log' # n.query("select name from %s where updated_at <'2016-06-27 00:00:00'" %(tbname) ) # n.query("select name from %s where is_face!=1 " %(tbname) ) n.query("select name from %s " % (tbname)) return n.fetchAll()
def findAll(self): n = MySQL() n.selectDb('images') tbname = 'images' # n.query("select name from %s where updated_at <'2016-06-27 00:00:00'" %(tbname) ) # n.query("select name from %s where is_face!=1 " %(tbname) ) n.query("select name from %s " %(tbname) ) return n.fetchAll()