コード例 #1
0
    def insert(self, d):
        n = MySQL()

        n.selectDb('images')
        tbname = 'youyuan_log'
        n.insert(tbname, d)
        n.commit()
コード例 #2
0
    def insert(self,d):
        n = MySQL()

        n.selectDb('images')
        tbname = 'images'
        n.insert(tbname, d)
        n.commit()
コード例 #3
0
 def update(self, filename, result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, result, "name='" + filename + "'")
     n.commit()
コード例 #4
0
 def updateFace(self, filename, count):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, {'is_face': count}, "name='" + filename + "'")
     n.commit()
コード例 #5
0
 def updateFace(self,filename,count):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, { 'is_face': count}, "name='"+filename+"'")
     n.commit()
コード例 #6
0
 def update(self,filename,result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'youyuan_log'
     n.update(tbname, result, "name='"+filename+"'")
     n.commit()
コード例 #7
0
 def updateNude(self, filename, result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, {'is_nude': result}, "name='" + filename + "'")
     n.commit()
コード例 #8
0
ファイル: images.py プロジェクト: fffy2366/image-processing
 def updateNude(self,filename,result):
     n = MySQL()
     n.selectDb('images')
     tbname = 'images'
     n.update(tbname, { 'is_nude': result}, "name='"+filename+"'")
     n.commit()