mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix archivebox delete errors
This commit is contained in:
parent
0347b911aa
commit
3a64ced697
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue