Browse Source

Fix: rebuild_index als builds the index for system-pages

master
Dirk Alders 2 months ago
parent
commit
35ea8c148c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      pages/search.py

+ 2
- 2
pages/search.py View File

8
 from whoosh.qparser.dateparse import DateParserPlugin
8
 from whoosh.qparser.dateparse import DateParserPlugin
9
 from whoosh import index, qparser
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
 logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
13
 logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
14
 
14
 
38
 
38
 
39
 
39
 
40
 def rebuild_index(ix):
40
 def rebuild_index(ix):
41
-    page_path = fstools.dirlist(settings.PAGES_ROOT, rekursive=False)
41
+    page_path = full_path_all_pages()
42
     for path in page_path:
42
     for path in page_path:
43
         pw = page_wrapped(None, path)
43
         pw = page_wrapped(None, path)
44
         add_item(ix, pw)
44
         add_item(ix, pw)

Loading…
Cancel
Save