From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 15 Jan 2025 22:54:25 +0000 (+0100)
Subject: Fix broken tag filtering.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/index.html?a=commitdiff_plain;h=HEAD;p=ytplom

Fix broken tag filtering.
---

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()