From a8fc1206d9561dc4883f09726f0bd2e1d81a1a3f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 2 May 2018 17:41:46 -0700 Subject: [PATCH] Oops, move get_root_tags into alphabetical position. --- etiquette/photodb.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 05c2d23..62595f5 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -796,6 +796,12 @@ class PDBTagMixin: else: raise exceptions.TagExists(existing_tag) + def get_root_tags(self): + ''' + Yield Tags that have no parent. + ''' + yield from self.get_root_things('tag') + def get_tag(self, name=None, id=None): ''' Redirect to get_tag_by_id or get_tag_by_name. @@ -855,12 +861,6 @@ class PDBTagMixin: def get_tags_by_id(self, ids): return self.get_things_by_id('tag', ids) - def get_root_tags(self): - ''' - Yield Tags that have no parent. - ''' - yield from self.get_root_things('tag') - @decorators.required_feature('tag.new') @decorators.transaction def new_tag(self, tagname, description=None, *, author=None, commit=True):