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