fix: remove capture from index

pull/199/head
Raphaël Vinot 2021-04-14 18:04:44 +02:00
parent 5a5b361f2c
commit bf5d15baf0
1 changed files with 2 additions and 0 deletions

View File

@ -472,6 +472,8 @@ class Lookyloo():
capture_dir = self._get_capture_dir(capture_uuid)
self.redis.hset(str(capture_dir), 'no_index', 1)
(capture_dir / 'no_index').touch()
if capture_uuid in self._captures_index:
self._captures_index[capture_uuid].no_index = True
@property
def capture_uuids(self) -> List[str]: