~pedronis/u1db/sync_integration_tests

« back to all changes in this revision

Viewing changes to u1todo/u1todo.py

  • Committer: Tarmac
  • Author(s): Eric Casteleijn
  • Date: 2012-06-13 11:24:53 UTC
  • mfrom: (322.1.11 fix-get_keys_from_index)
  • Revision ID: tarmac-20120613112453-aq5r4viwe1pii7iu
get_keys_from_index now returns simple values for single column indexes, and tuples for multicolumn ones

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
    def get_all_tags(self):
80
80
        """Get all tags in use in the entire database."""
81
 
        return self.db.get_index_keys(TAGS_INDEX)
 
81
        return [key[0] for key in self.db.get_index_keys(TAGS_INDEX)]
82
82
 
83
83
    def get_tasks_by_tags(self, tags):
84
84
        """Get all tasks that have every tag in tags."""