kusold / todoist-habitrpg

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

Friday-only dailies won't complete. #19

Closed cygnoir closed 9 years ago

cygnoir commented 9 years ago

Hi there. I seem to have found a bug with my every-Friday Todoist tasks that import as dailies. I have attached a screenshot of one; as you can see, there is no "Repeat" for this task even though it is definitely in the Dailies column.

This bug does not occur with Todoist tasks imported as dailies that occur on two days (every Saturday and Sunday, for example).

Completing these tasks in Todoist does not complete them in HabitRPG.

screenshot 2014-12-12 22 51 56

kusold commented 9 years ago

Thank you for filing this. Can you please paste the string you use on todoist for this task? (ex: every Friday)

cygnoir commented 9 years ago

"every friday starting today"

kusold commented 9 years ago

We currently don't support repeating events with the words: after, starting, last or repeating tasks that are similar to every 1st Monday every 3rd week etc...

We would like to, but we haven't figured out a way that translates well with HabitRPG's implementation of dailies. If you just do every friday then it should work.

Right now, any of Todoist task that has the words listed above will get created as a task. HabitRPG is in the process of reworking daily tasks though, so we might be able to support this easily in the future. HabitRPG/habitrpg#4173

cygnoir commented 9 years ago

Cheers. If I just change the string in Todoist will these dailies be changed in HabitRPG or do I need to delete/recreate the Todoist tasks?

kusold commented 9 years ago

I am not 100% sure, but you can try. I would venture to say that it needs to be recreated. If you don't want to do that (for task historical reasons) then you can edit .todoist-habitrpg.json and pluck the individual task from there. Be very careful editing that file though.

cygnoir commented 9 years ago

FYI, I changed the string in each of the Todoist tasks to "every Friday" and synced and it worked!