From 52fc73d5cba0590bb181a8f821365a600258647a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 15 Jan 2025 23:54:25 +0100 Subject: [PATCH] Fix broken tag filtering. --- src/ytplom/misc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index 44ab385..7f3fc0c 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -125,7 +125,7 @@ class TagSet: return self.empty or self.all_not_in(other_tags).empty def whitelisted(self, whitelist: Self) -> Self: - """Return self filtered by whitelist; if empty, return all.""" + """Return self filtered by whitelist; if latter empty, return all.""" if whitelist.empty: return self return self.all_also_in(whitelist) @@ -387,8 +387,6 @@ class VideoFile(DbData): show_absent: bool = False ) -> list[Self]: """Return cls.get_all matching provided filter criteria.""" - if not needed_tags_seen.all_not_in(whitelist_tags_display).empty: - return [] files = [f for f in cls.get_all(conn) if (show_absent or f.present) and str(filter_path).lower() in str(f.rel_path).lower() -- 2.30.2