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
@@ -15,7 +15,7 @@ def hist_cmd(args: argparse.Namespace, config: Config) -> None:
tags_not=args.exclude_tags,
question_contains=args.question,
answer_contains=args.answer)
chat = ChatDB.from_dir(Path('.'),
chat = ChatDB.from_dir(Path(config.cache),
Path(config.db),
mfilter=mfilter)
chat.print(args.source_code_only,