todoist_export icon indicating copy to clipboard operation
todoist_export copied to clipboard

replaced custom csv writing and some small adjustments

Open Gijs-Koot opened this issue 6 years ago • 2 comments

Hello Markwk,

I wanted to create an export of my todoist items and came across your script via Google. I've made a few adjustments after initially being unable to make it work due to a KeyError at this line below

user_completed_count = user['completed_count']

I was working on the script a bit, and thought, let's make it into a pull request. If you accept this, I could do some more work to polish a bit further. For example, I don't have a premium account, and then the script doesn't work anymore because the completed lookup fails, that's only available if you are a premium subscriber.

Anyway, this pull request shouldn't change any behaviour at the moment. Let me know if I can do something to make it acceptable for you.

-- Gijs

Gijs-Koot avatar May 19 '19 11:05 Gijs-Koot

@Gijs-Koot I took a quick look at the commits and looks like like some nice improvements. Let me do some testing this week to confirm and then go ahead and commit these. Thanks for sharing back. Really appreciate it!

markwk avatar May 20 '19 05:05 markwk

I got an error on about line 28. I think it should be: projects.to_csv("data/todoist-projects.csv")

markwk avatar Jul 28 '19 08:07 markwk