From 75c8dccf1b87225d5d539f82c1b33547d9efbb06 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 5 Jan 2021 15:54:35 -0800 Subject: [PATCH] Add warning when tag search has been nullified by has_tags=False. --- etiquette/photodb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 6add510..c8d622b 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -722,6 +722,8 @@ class PDBPhotoMixin: yield_photos = searchhelpers.normalize_yield_photos(yield_photos) if has_tags is False: + if (tag_musts or tag_mays or tag_forbids or tag_expression) and warning_bag: + warning_bag.add("has_tags=False so all tag requests are ignored.") tag_musts = None tag_mays = None tag_forbids = None