Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index::get_objects: Accept only list for attributes_to_retrieve #342

Merged
merged 1 commit into from
Mar 28, 2018

Conversation

julienbourdeau
Copy link

Fix #299

"""
requests = []
for object_id in object_ids:
request = {'indexName': self.index_name, 'objectID': object_id}
if attributes_to_retrieve is not None:

if isinstance(attributes_to_retrieve, list):
request['attributesToRetrieve'] = ",".join(attributes_to_retrieve)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would raise an exception if the check fails 🙃

@coveralls
Copy link

coveralls commented Mar 27, 2018

Coverage Status

Coverage decreased (-0.1%) to 89.95% when pulling 44c90ac on fix/299 into aea8c09 on master.

Copy link

@clement-leprovost clement-leprovost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@julienbourdeau julienbourdeau merged commit e3acc63 into master Mar 28, 2018
@julienbourdeau julienbourdeau deleted the fix/299 branch March 28, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants