X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/16a94603f78e462ff0f8069cd157dbe9f604a215..5074895f7d96cbd5fda6a4d566ddb25533137fd4:/src/search/index.py?ds=sidebyside diff --git a/src/search/index.py b/src/search/index.py index 7bc61c5c6..ce60978d5 100644 --- a/src/search/index.py +++ b/src/search/index.py @@ -826,13 +826,9 @@ class Search(SolrIndex): if is_pdcounter: if category == 'pd_author': tag = PDCounterAuthor.objects.get(id=doc.get('tag_id')) - elif category == 'pd_book': + else: # category == 'pd_book': tag = PDCounterBook.objects.get(id=doc.get('tag_id')) tag.category = 'pd_book' # make it look more lik a tag. - else: - # WTF - print ("Warning. cannot get pdcounter tag_id=%d from db; cat=%s" % ( - int(doc.get('tag_id')), category)).encode('utf-8') pd_tags.append(tag) else: tag = catalogue.models.Tag.objects.get(id=doc.get("tag_id"))