Comments (2)
I'm struggling to the all method to work period.
Maybe it's a python3 issue.
Either way I'm pretty sure your issue is linked to the way the base api works.
Under their docs you can get a max of 50 results per query. There is an option to request the next page, but I'm not sure if that part of this client is working.
There is a function called def _load_next_batch(self): in results.py file which might help you.
from api_python.
I think I figured out the issue.
To fix my issue of all() not working at all:
The function called next(self)
should be renamed to __next__(self)
.
All references to that function should be renamed.
I didn't notice the fix to the limit to 50 issue above, and went ahead to try and figure it out.
To fix the issue with the all() not getting all the results the bridge.py file should be updated.
There is a line that says
result = {"items": self.items_from_data(data, name, is_singleton, mode),
"has_more": (has_more == 'true')
That is a typo for the 'true'. That value is a bool not a string. It should say something like
has_more is True
from api_python.
Related Issues (5)
- API calls to timesheets_deleted are broken
- Fabric HOT 2
- Python 3 HOT 2
- The pip package is broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api_python.