Explorar el Código

Fix: rebuild_index als builds the index for system-pages

master
Dirk Alders hace 2 meses
padre
commit
35ea8c148c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      pages/search.py

+ 2
- 2
pages/search.py Ver fichero

@@ -8,7 +8,7 @@ from whoosh.fields import Schema, ID, TEXT, DATETIME
8 8
 from whoosh.qparser.dateparse import DateParserPlugin
9 9
 from whoosh import index, qparser
10 10
 
11
-from pages.page import page_wrapped
11
+from pages.page import page_wrapped, full_path_all_pages
12 12
 
13 13
 logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
14 14
 
@@ -38,7 +38,7 @@ def create_index():
38 38
 
39 39
 
40 40
 def rebuild_index(ix):
41
-    page_path = fstools.dirlist(settings.PAGES_ROOT, rekursive=False)
41
+    page_path = full_path_all_pages()
42 42
     for path in page_path:
43 43
         pw = page_wrapped(None, path)
44 44
         add_item(ix, pw)

Loading…
Cancelar
Guardar