mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-28 08:39:54 +02: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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user