X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/69b59e1dc5d93547a298830fc439a5608ebd6596..5bbe4f1c1ad5a8b27d9804cfd6f8f15f9c53d2b8:/apps/search/index.py?ds=sidebyside diff --git a/apps/search/index.py b/apps/search/index.py index f608a5bec..a0bf71588 100644 --- a/apps/search/index.py +++ b/apps/search/index.py @@ -1409,8 +1409,9 @@ class Search(IndexStore): else: tag = catalogue.models.Tag.objects.get(id=doc.get("tag_id")) # don't add the pdcounter tag if same tag already exists - if not (is_pdcounter and filter(lambda t: tag.slug == t.slug, tags)): - tags.append(tag) + + tags.append(tag) + except catalogue.models.Tag.DoesNotExist: pass except PDCounterAuthor.DoesNotExist: pass except PDCounterBook.DoesNotExist: pass