fix: Update index of the right directory

pull/783/head
Raphaël Vinot 2023-09-15 15:38:23 +02:00
parent ae484cc14f
commit 84175a944c
1 changed files with 2 additions and 3 deletions

View File

@ -226,9 +226,8 @@ class Archiver(AbstractManager):
(capture_path / 'tree.pickle').unlink(missing_ok=True)
(capture_path / 'tree.pickle.gz').unlink(missing_ok=True)
shutil.move(str(capture_path), str(dest_dir))
if captures:
# we archived some captures, update relevant index
self._update_index(captures[0].parent)
# we archived some captures, update relevant index
self._update_index(dest_dir)
if not archiving_done:
break
else: