home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e315e0e
)
Fix broken tag filtering.
master
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 15 Jan 2025 22:54:25 +0000
(23:54 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 15 Jan 2025 22:54:25 +0000
(23:54 +0100)
src/ytplom/misc.py
patch
|
blob
|
history
diff --git
a/src/ytplom/misc.py
b/src/ytplom/misc.py
index 44ab385ca80afcf3c8d481ca26df950653183c7a..7f3fc0c19e5045beac3f210e49ad69bff03b162a 100644
(file)
--- 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.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)
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."""
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()
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()