kusold / todoist-habitrpg

One way sync from Todoist -> HabitRPG
120 stars 14 forks source link

Yearly todoist entry created as daily in habitica #51

Open ajfclark opened 7 years ago

ajfclark commented 7 years ago

I have a couple of yearly tasks in todoist, something like Pay Insurance every Sept 28. Each of them sync into Habitica a daily, not a to-do entry.

I also tried Pay Insurance yearly on Sept 28 but they also appeared as a daily.

mchlnix commented 7 years ago

Todoist doesn't specify, when a task repeats. It just sends the unparsed date string, that the user inputted. So we would have to parse it as well to figure out exactly where what belongs. For now it might be better to get dailies and weeklies as they are now and make everything else into a todo.

And that doesn't even address the lack of support for other languages (since todoist sends them in the language of the user as well).

mchlnix commented 7 years ago

Something like this would work. But I'm sure there are special cases left: https://regex101.com/r/xUnNAT/8