mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-13 18:14:24 +02:00
fix archivebox delete errors
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user