Fix on_commit_queue action for rename_file; Fix tag sorting
This commit is contained in:
parent
072e9a7430
commit
1fc098a37f
2 changed files with 2 additions and 1 deletions
|
@ -757,7 +757,7 @@ class Photo(ObjectBase):
|
|||
self.photodb.log.debug('Committing - rename file')
|
||||
self.photodb.commit()
|
||||
else:
|
||||
queue_action = {'action': args, 'args': args}
|
||||
queue_action = {'action': action, 'args': args}
|
||||
self.photodb.on_commit_queue.append(queue_action)
|
||||
|
||||
self.__reinit__()
|
||||
|
|
|
@ -585,6 +585,7 @@ def get_tags_core(specific_tag=None):
|
|||
else:
|
||||
tags = specific_tag.walk_children()
|
||||
tags = list(tags)
|
||||
tags.sort(key=lambda x: x.qualified_name())
|
||||
return tags
|
||||
|
||||
@site.route('/tags')
|
||||
|
|
Loading…
Reference in a new issue