Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Fix handling labels in add_item by accepting a list.
Browse files Browse the repository at this point in the history
  • Loading branch information
lefcha committed Sep 30, 2016
1 parent 1040fd3 commit 2f8b710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions todoist/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ def add_item(self, content, **kwargs):
params = {'token': self.token,
'content': content}
params.update(kwargs)
if 'labels' in params:
params['labels'] = str(params['labels'])
return self._get('add_item', params=params)

# Class
Expand Down

0 comments on commit 2f8b710

Please sign in to comment.