mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
fix: Update function with --index-only flag was not behaving as expected
This commit is contained in:
parent
f467435797
commit
34cad4fe8d
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,7 @@ from .index import (
|
||||||
get_corrupted_folders,
|
get_corrupted_folders,
|
||||||
get_unrecognized_folders,
|
get_unrecognized_folders,
|
||||||
fix_invalid_folder_locations,
|
fix_invalid_folder_locations,
|
||||||
|
write_link_details,
|
||||||
)
|
)
|
||||||
from .index.json import (
|
from .index.json import (
|
||||||
parse_json_main_index,
|
parse_json_main_index,
|
||||||
|
@ -703,6 +704,8 @@ def update(resume: Optional[float]=None,
|
||||||
all_links = [link for link in matching_folders.values() if link]
|
all_links = [link for link in matching_folders.values() if link]
|
||||||
|
|
||||||
if index_only:
|
if index_only:
|
||||||
|
for link in all_links:
|
||||||
|
write_link_details(link, out_dir=out_dir, skip_sql_index=True)
|
||||||
return all_links
|
return all_links
|
||||||
|
|
||||||
# Step 2: Run the archive methods for each link
|
# Step 2: Run the archive methods for each link
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue