scottquach / Canvas-Assignments-Transfer-For-Todoist

Transfer your school assignments from Canvas to Todoist
MIT License
41 stars 19 forks source link

Due date changes not synced #12

Closed stacksjb closed 2 years ago

stacksjb commented 2 years ago

I've discovered that if an assignment due date is updated by a professor in Canvas, the tool will not sync the updated due date, since it already sees that the task has been synced.

This isn't frequent but is a problem when it occurs.

scottquach commented 2 years ago

I've made an update that will update the todoist item if the canvas due date is different than the todoist due date

andreicozma1 commented 2 years ago

@scottquach

if (task['due'] and task['due'].get('date') != assignment.get('due_date'))

Might need to be:

if (task['due'] and task['due'].get('date') != assignment.get('due_at')):

'due_date' is an invalid key therefore the result comes out as None

andreicozma1 commented 2 years ago

Raised a PR with fix on #13