scout/adapter/mongo/institute.py
def institutes(self, institute_ids=None):
        """Fetch all institutes.
        
        Args:
            institute_ids(list(str))
        
        Returns:
            res(pymongo.Cursor)
        """
        query = {}
        if institute_ids:
            query['_id'] = {'$in': institute_ids}
        LOG.debug("Fetching all institutes")
        return self.institute_collection.find(query)
def institutes(self, institute_ids=None):
        """Fetch all institutes.
        
        Args:
            institute_ids(list(str))
        
        Returns:
            res(pymongo.Cursor)
        """
        query = {}
        if institute_ids:
            query['_id'] = {'$in': institute_ids}
        LOG.debug("Fetching all institutes")
        return self.institute_collection.find(query)
def institutes ( self , institute_ids = None ) : query = { } if institute_ids : query [ '_id' ] = { '$in' : institute_ids } LOG . debug ( "Fetching all institutes" ) return self . institute_collection . find ( query )
Fetch all institutes.
        
        Args:
            institute_ids(list(str))
        
        Returns:
            res(pymongo.Cursor)
Fetch all institutes . Args : institute_ids ( list ( str )) Returns : res ( pymongo . Cursor )