geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit c2391751e9d842431c403c8b6221827dde4e6a99
parent a1160091007c3ca2fb7cbd56cc645ca982ede014
Author: René Wagner <rwa@clttr.info>
Date:   Sat,  6 Aug 2022 15:26:27 +0200

fix -d param for crawl

Diffstat:
Mgus/crawl.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gus/crawl.py b/gus/crawl.py @@ -534,7 +534,7 @@ def crawl_resource(resource): def run_crawl(should_run_destructive=False, seed_urls=[]): global index_dir - index_dir = constants.INDEX_DIR if should_run_destructive else constants.INDEX_DIR + index_dir = constants.INDEX_DIR_NEW if should_run_destructive else constants.INDEX_DIR pathlib.Path(index_dir).mkdir(parents=True, exist_ok=True) global db db = init_db(f"{index_dir}/{constants.DB_FILENAME}")