Switching notes to being stored as a dictionary
[doneit] / src / rtm_backend.py
index 5a3f346..d4a87d5 100644 (file)
@@ -92,7 +92,10 @@ class RtMilkManager(object):
                                        "completedDate": task.completed,
                                        "priority": task.priority,
                                        "estimate": task.estimate,
-                                       "notes": list(self._get_notes(taskId, taskSeries.notes)),
+                                       "notes": dict((
+                                               (note["id"], note)
+                                               for note in self._get_notes(taskId, taskSeries.notes)
+                                       )),
                                }
                                taskDetails = self._parse_task_details(rawTaskDetails)
                                yield taskDetails