scout/adapter/mongo/institute.py
def institute(self, institute_id):
        """Featch a single institute from the backend

            Args:
                institute_id(str)

            Returns:
                Institute object
        """
        LOG.debug("Fetch institute {}".format(institute_id))
        institute_obj = self.institute_collection.find_one({
            '_id': institute_id
        })
        if institute_obj is None:
            LOG.debug("Could not find institute {0}".format(institute_id))

        return institute_obj
def institute(self, institute_id):
        LOG.debug("Fetch institute {}".format(institute_id))
        institute_obj = self.institute_collection.find_one({
            '_id': institute_id
        })
        if institute_obj is None:
            LOG.debug("Could not find institute {0}".format(institute_id))

        return institute_obj
def institute ( self , institute_id ) : LOG . debug ( "Fetch institute {}" . format ( institute_id ) ) institute_obj = self . institute_collection . find_one ( { '_id' : institute_id } ) if institute_obj is None : LOG . debug ( "Could not find institute {0}" . format ( institute_id ) ) return institute_obj
Featch a single institute from the backend

            Args:
                institute_id(str)

            Returns:
                Institute object
Featch a single institute from the backend