mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 16:14:28 -04:00
test: Update more init_tests that were failing because of wording or Link->Snapshot changes
This commit is contained in:
parent
49b5241a7c
commit
ce5979de45
3 changed files with 7 additions and 6 deletions
|
@ -353,7 +353,7 @@ def init(force: bool=False, out_dir: Path=OUTPUT_DIR) -> None:
|
|||
orphaned_json_snapshots = {
|
||||
snapshot.url: snapshot
|
||||
for snapshot in parse_json_main_index(out_dir)
|
||||
if not all_snapshots.filter(url=link.url).exists()
|
||||
if not all_snapshots.filter(url=snapshot.url).exists()
|
||||
}
|
||||
if orphaned_json_snapshots:
|
||||
pending_snapshots.update(orphaned_json_snapshots)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue