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

Can't update items from project's data #78

Open
skica-dev opened this issue Apr 15, 2020 · 0 comments
Open

Can't update items from project's data #78

skica-dev opened this issue Apr 15, 2020 · 0 comments

Comments

@skica-dev
Copy link

>>> from todoist import TodoistAPI
>>> api = TodoistAPI(KEY)
>>> p = api.projects.get_data(2233523660)["items"]
>> item = p[1]
>>> item.update(labels=[new_label_id])
>> item["labels"]
[new_label_id]
>>> api.commit()
>>> api.sync()
>>> item["labels"]
[new_label_id]

Looks fine, hovewer the label (or any other parameter) doesn't update (in API or in webapp):

>>> api1 = TodoistAPI(KEY)
>>> api1.sync()
>> item1 = api1.items.get_by_id(id_of_item)
item1["labels"]
[]

Updating same task got by api.items.get_by_id() works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant