Fix passing verbose flag down in symmetric_ledger.py

This commit is contained in:
Saba 2021-12-11 11:36:32 -05:00
parent e5a19f5b0e
commit ce7a751e6b

View file

@ -147,10 +147,10 @@ def setup(config: TextSearchConfig, regenerate: bool, verbose: bool) -> TextSear
# Map notes in Org-Mode files to (compressed) JSONL formatted file # Map notes in Org-Mode files to (compressed) JSONL formatted file
if not resolve_absolute_path(config.compressed_jsonl).exists() or regenerate: if not resolve_absolute_path(config.compressed_jsonl).exists() or regenerate:
beancount_to_jsonl(config.input_files, config.input_filter, config.compressed_jsonl, config.verbose) beancount_to_jsonl(config.input_files, config.input_filter, config.compressed_jsonl, verbose)
# Extract Entries # Extract Entries
entries = extract_entries(config.compressed_jsonl, config.verbose) entries = extract_entries(config.compressed_jsonl, verbose)
top_k = min(len(entries), top_k) top_k = min(len(entries), top_k)
# Compute or Load Embeddings # Compute or Load Embeddings