From f6ed7e88597098ce479a6a1f4e4670a50631e72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Gim=C3=A9nez?= Date: Fri, 8 Sep 2023 13:25:21 +0200 Subject: [PATCH] Hot fix to allow filtering via slug --- repo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repo.py b/repo.py index f52e0b00..de2e4835 100644 --- a/repo.py +++ b/repo.py @@ -98,6 +98,9 @@ def parse_files(self, files: list, slugs: list = None): # Save file location to resolve any relative paths for images data['src'] = file + if data.get('slug') is None: + continue + if slugs and True not in [True if s.casefold() in data['slug'].casefold() else False for s in slugs]: self.handle.verbose_log(f"Skipping {data['model']}") continue