fix: properly check if capture is in the queue

pull/205/head
Raphaël Vinot 2021-05-18 16:04:13 -07:00
parent d6de54075f
commit 896f3c5f13
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ class Lookyloo():
return to_return
def get_capture_status(self, capture_uuid: str, /) -> CaptureStatus:
if self.redis.sismember('to_capture', capture_uuid):
if self.redis.zrank('to_capture', capture_uuid) is not None:
return CaptureStatus.QUEUED
elif self.redis.hexists('lookup_dirs', capture_uuid):
return CaptureStatus.DONE