mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 16:14:28 -04:00
index/schema.py: Make cmd_version actually optional.
During migration, we may have to import json index file which was produced with an older version. If the index file is missing cmd_version, migration will fail.
This commit is contained in:
parent
0bb216ce02
commit
2ba17136e0
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class ArchiveResult:
|
|||
}
|
||||
info['start_ts'] = parse_date(info['start_ts'])
|
||||
info['end_ts'] = parse_date(info['end_ts'])
|
||||
info['cmd_version'] = info.get('cmd_version')
|
||||
return cls(**info)
|
||||
|
||||
def to_dict(self, *keys) -> dict:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue