From 8a44c8ec2e35675992c1a35ba7b08bc60951322c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 21 Dec 2021 16:52:46 -0800 Subject: [PATCH] Let normalize_tagset handle given individual tag objects. --- etiquette/searchhelpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etiquette/searchhelpers.py b/etiquette/searchhelpers.py index b115c8c..12b003a 100644 --- a/etiquette/searchhelpers.py +++ b/etiquette/searchhelpers.py @@ -490,6 +490,9 @@ def normalize_tagset(photodb, tags, warning_bag=None): if not tags: return None + if isinstance(tags, objects.Tag): + tags = {tags} + if isinstance(tags, str): tags = stringtools.comma_space_split(tags)