fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more integrated to templates
[wolnelektury.git]
/
apps
/
search
/
index.py
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
a3a62de
..
7fffb57
100644
(file)
--- a/
apps/search/index.py
+++ b/
apps/search/index.py
@@
-639,10
+639,12
@@
class Hint(object):
return None
def part_filter(self):
return None
def part_filter(self):
+ fs = []
if self.part_tags:
if self.part_tags:
- return self.tag_filter(self.part_tags, field='themes')
- else:
- return None
+ fs.append(self.tag_filter(self.part_tags, field='themes'))
+ if self.book is not None:
+ bf = TermsFilter()
+ bf.addTerm # TODO
def should_search_for_book(self):
return self.book is None
def should_search_for_book(self):
return self.book is None