mirror of
https://github.com/sys-nyx/red-arch.git
synced 2025-05-06 08:45:31 -04:00
added search directory creation
This commit is contained in:
parent
e9d7144eae
commit
39d417615d
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ def main():
|
||||||
|
|
||||||
idxs, metadata = get_lunr_posts_index(subreddits)
|
idxs, metadata = get_lunr_posts_index(subreddits)
|
||||||
|
|
||||||
|
os.makedirs('r/static/js/search/', exist_ok=True)
|
||||||
|
|
||||||
idx_path_list = []
|
idx_path_list = []
|
||||||
for idx in idxs:
|
for idx in idxs:
|
||||||
idx_name = f'static/js/search/idx-00{idxs.index(idx) + 1}.json'
|
idx_name = f'static/js/search/idx-00{idxs.index(idx) + 1}.json'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue