fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #4076: Recommendations from collections.
[wolnelektury.git]
/
src
/
search
/
views.py
diff --git
a/src/search/views.py
b/src/search/views.py
index
4d792e4
..
970734a
100644
(file)
--- a/
src/search/views.py
+++ b/
src/search/views.py
@@
-179,7
+179,7
@@
def search_books(query):
except Book.DoesNotExist:
return False
except Book.DoesNotExist:
return False
- results =
filter(ensure_exists, results)
+ results =
[r for r in results if ensure_exists(r)]
return results
return results
@@
-214,7
+214,7
@@
def search_pictures(query):
except Picture.DoesNotExist:
return False
except Picture.DoesNotExist:
return False
- results =
filter(ensure_exists, results)
+ results =
[r for r in results if ensure_exists(r)]
return results
return results