mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
fix: flush_search_index must be called before removing snapshots
This commit is contained in:
parent
70cc0c1950
commit
c5b1b91708
1 changed files with 1 additions and 1 deletions
|
@ -665,8 +665,8 @@ def remove(filter_str: Optional[str]=None,
|
||||||
|
|
||||||
to_remove = snapshots.count()
|
to_remove = snapshots.count()
|
||||||
|
|
||||||
remove_from_sql_main_index(snapshots=snapshots, out_dir=out_dir)
|
|
||||||
flush_search_index(snapshots=snapshots)
|
flush_search_index(snapshots=snapshots)
|
||||||
|
remove_from_sql_main_index(snapshots=snapshots, out_dir=out_dir)
|
||||||
all_snapshots = load_main_index(out_dir=out_dir)
|
all_snapshots = load_main_index(out_dir=out_dir)
|
||||||
log_removal_finished(all_snapshots.count(), to_remove)
|
log_removal_finished(all_snapshots.count(), to_remove)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue