mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
fix link parsing
This commit is contained in:
parent
b58afcf974
commit
03a388300f
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ def parse_json_link_index(link_dir: str) -> Optional[Link]:
|
||||||
if os.path.exists(existing_index):
|
if os.path.exists(existing_index):
|
||||||
with open(existing_index, 'r', encoding='utf-8') as f:
|
with open(existing_index, 'r', encoding='utf-8') as f:
|
||||||
link_json = json.load(f)
|
link_json = json.load(f)
|
||||||
return Link(**link_json)
|
return Link.from_json(link_json)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue