Fix 'dict' object has no attribute 'strftime' (#13215)

* Fix 'dict' object has no attribute 'strftime'

* Clear existing list instead of new object
pull/13252/head
Juggels 2018-03-15 21:43:20 +01:00 committed by Pascal Vizeli
parent 5e675677ad
commit a86bf81768
1 changed files with 4 additions and 0 deletions

View File

@ -496,6 +496,10 @@ class TodoistProjectData(object):
# We had no valid tasks # We had no valid tasks
return True return True
# Make sure the task collection is reset to prevent an
# infinite collection repeating the same tasks
self.all_project_tasks.clear()
# Organize the best tasks (so users can see all the tasks # Organize the best tasks (so users can see all the tasks
# they have, organized) # they have, organized)
while project_tasks: while project_tasks: