configuration: the cache folder can now be specified in the configuration file

This commit is contained in:
2023-09-18 14:34:10 +02:00
parent 25fffb6fea
commit 80a1457dd1
5 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ def question_cmd(args: argparse.Namespace, config: Config) -> None:
mfilter = MessageFilter(tags_or=args.or_tags if args.or_tags is not None else set(),
tags_and=args.and_tags if args.and_tags is not None else set(),
tags_not=args.exclude_tags if args.exclude_tags is not None else set())
chat = ChatDB.from_dir(cache_path=Path('.'),
chat = ChatDB.from_dir(cache_path=Path(config.cache),
db_path=Path(config.db),
mfilter=mfilter)
# if it's a new question, create and store it immediately