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

Execution error with example #22

Open
patrick-compass opened this issue Mar 12, 2019 · 1 comment
Open

Execution error with example #22

patrick-compass opened this issue Mar 12, 2019 · 1 comment

Comments

@patrick-compass
Copy link

Windows 10
Python 2.7.16

Traceback (most recent call last):
  File "C:\ProjectsGit\open-air\example.py", line 14, in <module>
    xml_data.append(commands.Read('Task', 'equal to', {'limit': '1000'}, [filter1, filter2], ['id', 'timesheetid']).read())
  File "C:\Python27\lib\site-packages\oaxmlapi-1.1.1-py2.7.egg\oaxmlapi\commands.py", line 118, in read
    field = self.orderby.get('field', 'id')
AttributeError: 'list' object has no attribute 'get'
@23maverick23
Copy link
Owner

The example in the README was never updated to include the new orderby attribute for the Read method. Please read the documentation for more details.
https://23maverick23.gitbook.io/oaxmlapi/docs/commands#read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants