Skip to content

Commit

Permalink
Increase number of API results
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblee committed Nov 7, 2019
1 parent 9bf5339 commit a003909
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="tod0",
version="0.1.0",
version="0.1.1",
author="kiblee",
author_email="kiblee@pm.me",
packages=["todocli", "todocli.test"],
Expand Down
10 changes: 6 additions & 4 deletions todocli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,19 @@ def list_tasks(all_=False, folder=""):

if folder == "":
if all_:
o = outlook.get("{}/tasks".format(base_api_url))
o = outlook.get("{}/tasks?top=100".format(base_api_url))
else:
o = outlook.get(
"{}/tasks?filter=status ne 'completed'".format(base_api_url)
"{}/tasks?filter=status ne 'completed'&top=100".format(base_api_url)
)
else:
if all_:
o = outlook.get("{}/taskFolders/{}/tasks".format(base_api_url, folder))
o = outlook.get(
"{}/taskFolders/{}/tasks?top=100".format(base_api_url, folder)
)
else:
o = outlook.get(
"{}/taskFolders/{}/tasks?filter=status ne 'completed'".format(
"{}/taskFolders/{}/tasks?filter=status ne 'completed'&top=100".format(
base_api_url, folder
)
)
Expand Down

0 comments on commit a003909

Please sign in to comment.