- 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()
- and (needed_tags_dark.are_all_in(f.tags)
- or not whitelist_tags_filter.all_also_in(f.tags).empty)
- and needed_tags_seen.whitelisted(whitelist_tags_display
- ).are_all_in(f.tags)]
- for f in files:
- f.whitelist_tags_display = whitelist_tags_display
- return files
+ return [
+ 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()
+ and (cls.needed_tags_prefilter.are_all_in(f.tags)
+ or not cls.whitelist_tags_prefilter.all_also_in(f.tags).empty)
+ and needed_tags_seen.whitelisted(cls.whitelist_tags_display
+ ).are_all_in(f.tags)]