diff --git a/indexer/src/models.py b/indexer/src/models.py index f6a351e..60439a1 100644 --- a/indexer/src/models.py +++ b/indexer/src/models.py @@ -346,7 +346,7 @@ def parse(self, packpath: str) -> Pack: settings.base_url, preview.relative_to(settings.files_dir) ) ) - if not pack.preview_urls: - logging.warn(f"Missing pack previews: {pack_set.name!r}") + if len(pack.preview_urls) not in range (1, 8): + logging.warn(f"Wrong pack previews: {pack_set.name!r} has {len(pack.preview_urls)} previews") return pack