mirror of https://github.com/CIRCL/lookyloo
fix: properly check if capture is in the queue
parent
d6de54075f
commit
896f3c5f13
|
@ -586,7 +586,7 @@ class Lookyloo():
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
def get_capture_status(self, capture_uuid: str, /) -> CaptureStatus:
|
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
|
return CaptureStatus.QUEUED
|
||||||
elif self.redis.hexists('lookup_dirs', capture_uuid):
|
elif self.redis.hexists('lookup_dirs', capture_uuid):
|
||||||
return CaptureStatus.DONE
|
return CaptureStatus.DONE
|
||||||
|
|
Loading…
Reference in New Issue