mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-14 10:34:20 +02:00
fix resume flag on archivebox update
This commit is contained in:
@@ -706,6 +706,15 @@ def update(resume: Optional[float]=None,
|
|||||||
|
|
||||||
# Step 3: Run the archive methods for each link
|
# Step 3: Run the archive methods for each link
|
||||||
to_archive = new_links if only_new else all_links
|
to_archive = new_links if only_new else all_links
|
||||||
|
if resume:
|
||||||
|
to_archive = [
|
||||||
|
link for link in to_archive
|
||||||
|
if link.timestamp >= str(resume)
|
||||||
|
]
|
||||||
|
if not to_archive:
|
||||||
|
print(f'[√] Nothing found to resume after {resume}.')
|
||||||
|
return all_links
|
||||||
|
|
||||||
archive_links(to_archive, overwrite=overwrite, out_dir=out_dir)
|
archive_links(to_archive, overwrite=overwrite, out_dir=out_dir)
|
||||||
|
|
||||||
# Step 4: Re-write links index with updated titles, icons, and resources
|
# Step 4: Re-write links index with updated titles, icons, and resources
|
||||||
|
Reference in New Issue
Block a user