home · contact · privacy
Fix broken tag filtering. master
authorChristian Heller <c.heller@plomlompom.de>
Wed, 15 Jan 2025 22:54:25 +0000 (23:54 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 15 Jan 2025 22:54:25 +0000 (23:54 +0100)
src/ytplom/misc.py

index 44ab385ca80afcf3c8d481ca26df950653183c7a..7f3fc0c19e5045beac3f210e49ad69bff03b162a 100644 (file)
@@ -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()