From 7e25747d826853ced1cebbb9ab1c98a02185ec5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sat, 24 Feb 2024 21:18:57 +0100 Subject: [PATCH] fix: properly check zscore (can be 0) --- bin/background_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/background_processing.py b/bin/background_processing.py index dd6f6a95..61a0b3ff 100755 --- a/bin/background_processing.py +++ b/bin/background_processing.py @@ -99,7 +99,7 @@ class Processing(AbstractManager): to_requeue.append(uuid) for uuid in to_requeue: - if not self.lookyloo.redis.zscore('to_capture', uuid): + if self.lookyloo.redis.zscore('to_capture', uuid) is None # The capture has been captured in the meantime. continue self.logger.info(f'Found a non-queued capture ({uuid}), retrying now.')