X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dd6284e01f00296294a527ded7e840ac14c5fbb8..9771b4edcbb556927312f624de6263395f82e0ba:/apps/search/views.py?ds=sidebyside diff --git a/apps/search/views.py b/apps/search/views.py index 75cc16a0d..bfa3c9b93 100644 --- a/apps/search/views.py +++ b/apps/search/views.py @@ -67,7 +67,6 @@ def hint(request): # jezeli tagi dot tylko ksiazki, to wazne zeby te nowe byly w tej samej ksiazce # jesli zas dotycza themes, to wazne, zeby byly w tym samym fragmencie. - # import pdb; pdb.set_trace() tags = s.hint_tags(prefix) books = s.hint_books(prefix) @@ -127,7 +126,8 @@ def main(request): context_instance=RequestContext(request)) hint.tags(tag_list) - hint.books(book) + if book: + hint.books(book) toks = StringReader(query) fuzzy = 'fuzzy' in request.GET