dbMongo.py
def insertLabelDB(self, label):
        """This method insert a new label"""
        count = self.db.LabelCollection.find({"labelName":label["labelName"]}).count()
        if(count == 0):
            result = True
            id = self.db.LabelCollection.insert(label)
            return result,id
        else:
            result= False
            id = None
            return result,id
This method insert a new label
This method insert a new label
This method insert a new label
def insertLabelDB(self, label):
        count = self.db.LabelCollection.find({"labelName":label["labelName"]}).count()
        if(count == 0):
            result = True
            id = self.db.LabelCollection.insert(label)
            return result,id
        else:
            result= False
            id = None
            return result,id
def insertLabelDB ( self , label ) : count = self . db . LabelCollection . find ( { "labelName" : label [ "labelName" ] } ) . count ( ) if ( count == 0 ) : result = True id = self . db . LabelCollection . insert ( label ) return result , id else : result = False id = None return result , id
This method insert a new label
This method insert a new label
"""This method insert a new label"""
self
label