mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Use dictionary instead of list to track entry to file maps
This commit is contained in:
@@ -141,7 +141,7 @@ def convert_org_nodes_to_entries(entries: list[orgnode.Orgnode], entry_to_file_m
|
||||
return entry_maps
|
||||
|
||||
|
||||
def convert_org_entries_to_jsonl(entries) -> str:
|
||||
def convert_org_entries_to_jsonl(entries: list[dict]) -> str:
|
||||
"Convert each Org-Mode entry to JSON and collate as JSONL"
|
||||
return ''.join([f'{json.dumps(entry_dict, ensure_ascii=False)}\n' for entry_dict in entries])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user