fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move source names to a model.
[wolnelektury.git]
/
apps
/
search
/
index.py
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
85bcb61
..
7fb60b5
100644
(file)
--- a/
apps/search/index.py
+++ b/
apps/search/index.py
@@
-1,5
+1,7
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.conf import settings
import os
from django.conf import settings
import os
@@
-163,7
+165,7
@@
class Index(SolrIndex):
q_id_cat = self.index.Q(q_id & q_cat)
tag_qs.append(q_id_cat)
q_id_cat = self.index.Q(q_id & q_cat)
tag_qs.append(q_id_cat)
- self.delete_query(tag_qs)
+ self.delete_query(
*
tag_qs)
else: # all
q = self.index.Q(tag_id__any=True)
self.delete_query(q)
else: # all
q = self.index.Q(tag_id__any=True)
self.delete_query(q)