oaxmlapi icon indicating copy to clipboard operation
oaxmlapi copied to clipboard

Execution error with example

Open patrick-compass opened this issue 5 years ago • 1 comments

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'

patrick-compass avatar Mar 12 '19 14:03 patrick-compass

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

23maverick23 avatar Mar 13 '19 22:03 23maverick23