Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Davydov committed Jan 24, 2023
1 parent 2e29f5a commit 6dd0166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion todoist_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def delete_items_sync(self, items):
return responses

def get_completed_tasks(self):
return self.post("https://api.todoist.com/sync/v9/completed/get_all", headers=self.headers).json()['items']
return self.post("https://api.todoist.com/sync/v9/completed/get_all", headers=self.headers, json={
"limit": 200
}).json()['items']

def add_item(self, item_data, quick=False):
print(f"TODOIST add_item: {item_data}")
Expand Down

0 comments on commit 6dd0166

Please sign in to comment.