-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resurrect the project with the Sync API v9 #9
base: main
Are you sure you want to change the base?
Conversation
Also, it fixes the #8 issue |
Hi, @JSMonk Thanks for taking the time to code it out. I was actually working on this some time ago, but I couldn't get it to work due to the It seems that you code does not solve this, and it seems that only the API developers (https://github.com/Doist/todoist-api-python) can solve it. |
The only workaround I see is calling the |
So, it's only for the archive projects, right? In which of the data frames should this information be added? |
I'm not sure I was as clear as I could be The problemCalling the Calling the So, the workaround would be to call the There's no way to get completed items for archived projects because there's no way to find out the project ids for archived projects. What code would changeMainly change the data_collector file to first get all projects using stop_collecting = False
old_shape = 0
for project_id in self.projects["project_id"].unique():
while not stop_collecting:
self._collect_completed_tasks(limit=200, offset=self.current_offset, project_id=project_id)
new_shape = self.items.shape[0]
if new_shape != old_shape and new_shape < limit:
old_shape = new_shape
self.current_offset += 200
else:
self.current_offset = new_shape
stop_collecting = True |
Hi @JSMonk , they've responded that I could call the sync api. I'll work on the code to do it, given that they've discontinued the sdk for the sync api, so we do not have to make workarounds anymore. Thanks so much for you input and once I get it back online I'll hit you up and, if you want, create a PR for the README so you can appear as a contributor. |
So, do you think I should close the PR if you don't use it? |
First of all, thank you a lot for the project. I miss such kind of dashboard integrated into the Todoist app.
Because I want to use it a lot, I resurrect it with the Todoist Sync API v9, and it works. Please feel free to leave comments if something is implemented in the wrong code style (it's my first interaction with a Python project)