fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e71a219
)
Fixes #4080: Missing search no-results page.
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Sep 2020 13:19:23 +0000
(15:19 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Sep 2020 13:19:23 +0000
(15:19 +0200)
src/search/views.py
patch
|
blob
|
history
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