fix: wrong key type

pull/526/head
Raphaël Vinot 2022-09-23 15:38:23 +02:00
parent 43a79babba
commit 862c9e0750
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ class Lookyloo():
# Post-processing on lookyloo's side
return CaptureStatusCore.ONGOING
lacus_status = self.lacus.get_capture_status(capture_uuid)
if lacus_status == CaptureStatusCore.UNKNOWN and self.redis.sismember('to_capture', capture_uuid):
if lacus_status == CaptureStatusCore.UNKNOWN and self.redis.zscore('to_capture', capture_uuid) is not None:
# If we do the query before lacus picks it up, we will tell to the user that the UUID doesn't exists.
return CaptureStatusCore.QUEUED
return lacus_status