From 39d417615d5f970e9212325942aee45cef23327f Mon Sep 17 00:00:00 2001 From: sys-nyx Date: Sun, 29 Dec 2024 01:39:04 -0800 Subject: [PATCH] added search directory creation --- redarch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redarch.py b/redarch.py index 09b1f0c..67e59b6 100644 --- a/redarch.py +++ b/redarch.py @@ -109,6 +109,8 @@ def main(): idxs, metadata = get_lunr_posts_index(subreddits) + os.makedirs('r/static/js/search/', exist_ok=True) + idx_path_list = [] for idx in idxs: idx_name = f'static/js/search/idx-00{idxs.index(idx) + 1}.json'