Let normalize_tagset handle given individual tag objects.

This commit is contained in:
voussoir 2021-12-21 16:52:46 -08:00
parent c591997b10
commit 8a44c8ec2e
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -490,6 +490,9 @@ def normalize_tagset(photodb, tags, warning_bag=None):
if not tags: if not tags:
return None return None
if isinstance(tags, objects.Tag):
tags = {tags}
if isinstance(tags, str): if isinstance(tags, str):
tags = stringtools.comma_space_split(tags) tags = stringtools.comma_space_split(tags)