Skip to content

Commit b533482

Browse files
committed
Lower default page limit from 1000 to 100.
1 parent c152480 commit b533482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Adafruit_IO/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from .errors import RequestError, ThrottlingError
3434
from .model import Data, Feed, Group, Dashboard, Block, Layout
3535

36-
API_PAGE_LIMIT = 1000
36+
DEFAULT_PAGE_LIMIT = 100
3737

3838
# set outgoing version, pulled from setup.py
3939
version = pkg_resources.require("Adafruit_IO")[0].version
@@ -254,7 +254,7 @@ def receive_previous(self, feed):
254254
path = "feeds/{0}/data/previous".format(feed)
255255
return Data.from_dict(self._get(path))
256256

257-
def data(self, feed, data_id=None, max_results=API_PAGE_LIMIT):
257+
def data(self, feed, data_id=None, max_results=DEFAULT_PAGE_LIMIT):
258258
"""Retrieve data from a feed. If data_id is not specified then all the data
259259
for the feed will be returned in an array.
260260
:param string feed: Name/Key/ID of Adafruit IO feed.

0 commit comments

Comments
 (0)