Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Switch to todoist-api-python #1

Open
stefan2904 opened this issue Dec 19, 2022 · 2 comments
Open

Switch to todoist-api-python #1

stefan2904 opened this issue Dec 19, 2022 · 2 comments

Comments

@stefan2904
Copy link
Owner

As todoist-python is deprecated,
we need to switch to todoist-api-python.

stefan2904 added a commit that referenced this issue Dec 19, 2022
mid term, we need to switch to todoist-api-python #1
@stefan2904
Copy link
Owner Author

stefan2904 commented Dec 19, 2022

(Unfortunately this is a rather annoying move from Todoist. Since I am not really using Todoist anymore, I don't have the time to fix this right now. As a "quick-fix" I am going to remove existing Todoist integrations from my system for now.)

@stefan2904
Copy link
Owner Author

For the record, the currently used library/version results in error like this:

[2022-12-19 11:50:53,383] ERROR in app: Exception on /test [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/src/app/app.py", line 89, in test
    process_event('testevent', {'id': '3697787544'})
  File "/usr/src/app/app.py", line 59, in process_event
    item = todoist_api.items.get(event['id'])
  File "/usr/local/lib/python3.7/site-packages/todoist/managers/items.py", line 191, in get
    if obj.get("project"):
AttributeError: 'str' object has no attribute 'get'

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