From 3a64ced69774156223b3f7d734018079cbbb9148 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 19 Nov 2024 03:45:44 -0800 Subject: [PATCH] fix archivebox delete errors --- archivebox/cli/archivebox_remove.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebox/cli/archivebox_remove.py b/archivebox/cli/archivebox_remove.py index cc82ecc9..0f03d686 100644 --- a/archivebox/cli/archivebox_remove.py +++ b/archivebox/cli/archivebox_remove.py @@ -40,6 +40,8 @@ def remove(filter_patterns: Iterable[str]=(), setup_django() check_data_folder() + + from archivebox.cli.archivebox_search import list_links list_kwargs = { "filter_patterns": filter_patterns, @@ -75,7 +77,7 @@ def remove(filter_patterns: Iterable[str]=(), to_remove = snapshots.count() - from .search import flush_search_index + from archivebox.search import flush_search_index flush_search_index(snapshots=snapshots) remove_from_sql_main_index(snapshots=snapshots, out_dir=out_dir)