Beispiel #1
0
    def delete_comment(self, _id):
        result = Database.delete_one('comments', {'_id': self._id})
        isDocumentExist = Database.find_one('comments', {'_id': self._id})

        if result.deleted_count is 1 and isDocumentExist is None:
            return True
        return False
    def remove_board(cls, boardId, removeFromTeamCollection):
        _, boardCursor = Board.get_board(boardId)

        teamId = boardCursor['reletedTo']['teamId']
        deletedBoard = Database.delete_one('boards', {"_id": boardId})
        removeFromTeamCollection(teamId, boardId)
Beispiel #3
0
 def remove_self(self):
     Database.delete_one(Checklist.collection, {'_id': self._id})
     return self._id
Beispiel #4
0
 def remove(_id):
     Database.delete_one(Log.collection, {'_id': _id})