Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ def parse_files(self, files: list, slugs: list = None):
# Save file location to resolve any relative paths for images
data['src'] = file

if slugs and True not in [True if s.casefold() in data['slug'].casefold() else False for s in slugs]:
match_any_given_slug_wildcard = any(
[s.lower() in data["slug"].lower() for s in slugs if "slug" in data]
)
if not match_any_given_slug_wildcard:
self.handle.verbose_log(f"Skipping {data['model']}")
continue

Expand Down