示例#1
0
    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()
示例#2
0
    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()
示例#3
0
    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()
示例#4
0
    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()
示例#5
0
    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()
示例#6
0
    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()