def collection_get(self): results = CoreContact.find_index(self.user, None, limit=self.get_limit(), offset=self.get_offset()) data = [ReturnIndexShortContact.build(x).serialize() for x in results['data']] return {'contacts': data, 'total': results['total']}
def collection_get(self): results = CoreContact.find_index(self.user, None, limit=self.get_limit(), offset=self.get_offset()) data = [ ReturnIndexShortContact.build(x).serialize() for x in results['data'] ] return {'contacts': data, 'total': results['total']}