Forgot to initialize post cache for search

This commit is contained in:
Grégory Soutadé 2013-01-22 20:02:56 +01:00
parent 5b3eafe758
commit 3d393c907c

View File

@ -503,7 +503,9 @@ def generate(request, blog_id):
def generate_search(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)
@ -532,7 +534,9 @@ def search(request, blog_id):
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)