Forgot to initialize post cache for search
This commit is contained in:
parent
5b3eafe758
commit
3d393c907c
8
views.py
8
views.py
|
@ -503,7 +503,9 @@ def generate(request, blog_id):
|
||||||
def generate_search(request, blog_id):
|
def generate_search(request, blog_id):
|
||||||
b,_ = have_I_right(request, blog_id)
|
b,_ = have_I_right(request, blog_id)
|
||||||
|
|
||||||
s = Search()
|
hash_posts = {}
|
||||||
|
hash_posts_content = {}
|
||||||
|
s = Search(hash_posts, hash_posts_content)
|
||||||
|
|
||||||
report = s.create_index(b)
|
report = s.create_index(b)
|
||||||
|
|
||||||
|
@ -532,7 +534,9 @@ def search(request, blog_id):
|
||||||
|
|
||||||
if post_list is None: post_list = []
|
if post_list is None: post_list = []
|
||||||
|
|
||||||
s = search.Search()
|
hash_posts = {}
|
||||||
|
hash_posts_content = {}
|
||||||
|
s = search.Search(hash_posts, hash_posts_content)
|
||||||
|
|
||||||
res = s.generate(b, b.src_path, b.output_path, post_list)
|
res = s.generate(b, b.src_path, b.output_path, post_list)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user