Skip to content

Fixed error not being able to get inputs property from attachment actions #104

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

Closed
wants to merge 1 commit into from

Conversation

sQu4rks
Copy link
Contributor

@sQu4rks sQu4rks commented Apr 8, 2020

When accessing the .inputs property the current version errors with a OrderedDict is not callable error.

This PR fixes the error by adding the _json_data.get('inputs') call in the property.

As a workaround one can access the property directly:

attachment = api.attachment_actions.get(attachment_id)
inputs = attachment._json_data.get('inputs')

@sQu4rks sQu4rks changed the title Fixed error not being able to get inputs property Fixed error not being able to get inputs property from attachment actions Apr 8, 2020
@sQu4rks
Copy link
Contributor Author

sQu4rks commented Apr 8, 2020

Closing since #103 is doing the same.

@sQu4rks sQu4rks closed this Apr 8, 2020
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.

1 participant