mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-16 16:14:28 -04:00
fix: Overwrite(add command) was using snapshots without timestamps (and in memory), causing issues with some extractors
This commit is contained in:
parent
a36f36866f
commit
30c886d4d4
3 changed files with 3 additions and 1 deletions
|
@ -597,6 +597,7 @@ def add(urls: Union[str, List[str]],
|
|||
if update_all:
|
||||
archive_snapshots(all_snapshots, overwrite=overwrite, **archive_kwargs)
|
||||
elif overwrite:
|
||||
imported_snapshots = Snapshot.objects.filter(url__in=[imported_snapshot.url for imported_snapshot in imported_snapshots])
|
||||
archive_snapshots(imported_snapshots, overwrite=True, **archive_kwargs)
|
||||
elif new_snapshots:
|
||||
archive_snapshots(new_snapshots, overwrite=False, **archive_kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue