Esempio n. 1
0
    def insert(self, d):
        n = MySQL()

        n.selectDb('images')
        tbname = 'youyuan_log'
        n.insert(tbname, d)
        n.commit()
Esempio n. 2
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()
Esempio n. 3
0
    def insert(self,d):
        n = MySQL()

        n.selectDb('images')
        tbname = 'images'
        n.insert(tbname, d)
        n.commit()
Esempio n. 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()
Esempio n. 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()
Esempio n. 6
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()
Esempio n. 7
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()
Esempio n. 8
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()
Esempio n. 9
0
 def update(self, filename, result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, result, "name='" + filename + "'")
     n.commit()
Esempio n. 10
0
 def updateFace(self, filename, count):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, {'is_face': count}, "name='" + filename + "'")
     n.commit()
Esempio n. 11
0
 def updateFace(self,filename,count):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, { 'is_face': count}, "name='"+filename+"'")
     n.commit()
Esempio n. 12
0
 def update(self,filename,result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, result, "name='"+filename+"'")
     n.commit()
Esempio n. 13
0
 def updateNude(self, filename, result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, {'is_nude': result}, "name='" + filename + "'")
     n.commit()
Esempio n. 14
0
 def updateNude(self,filename,result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, { 'is_nude': result}, "name='"+filename+"'")
     n.commit()