mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Fix error in tests for markdown_to_jsonl
This commit is contained in:
@@ -144,7 +144,7 @@ class MarkdownToJsonl(TextToJsonl):
|
|||||||
raw_filename = entry_to_file_map[parsed_entry]
|
raw_filename = entry_to_file_map[parsed_entry]
|
||||||
|
|
||||||
# Check if raw_filename is a URL. If so, save it as is. If not, convert it to a Path.
|
# Check if raw_filename is a URL. If so, save it as is. If not, convert it to a Path.
|
||||||
if re.search(r"^https?://", raw_filename):
|
if type(raw_filename) == str and re.search(r"^https?://", raw_filename):
|
||||||
entry_filename = raw_filename
|
entry_filename = raw_filename
|
||||||
else:
|
else:
|
||||||
entry_filename = Path(raw_filename)
|
entry_filename = Path(raw_filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user