fix archivebox delete errors

This commit is contained in:
Nick Sweeting 2024-11-19 03:45:44 -08:00
parent 0347b911aa
commit 3a64ced697
No known key found for this signature in database

View file

@ -41,6 +41,8 @@ def remove(filter_patterns: Iterable[str]=(),
setup_django() setup_django()
check_data_folder() check_data_folder()
from archivebox.cli.archivebox_search import list_links
list_kwargs = { list_kwargs = {
"filter_patterns": filter_patterns, "filter_patterns": filter_patterns,
"filter_type": filter_type, "filter_type": filter_type,
@ -75,7 +77,7 @@ def remove(filter_patterns: Iterable[str]=(),
to_remove = snapshots.count() to_remove = snapshots.count()
from .search import flush_search_index from archivebox.search import flush_search_index
flush_search_index(snapshots=snapshots) flush_search_index(snapshots=snapshots)
remove_from_sql_main_index(snapshots=snapshots, out_dir=out_dir) remove_from_sql_main_index(snapshots=snapshots, out_dir=out_dir)