From 10d9d1e0a7e2802413eca354e54f159d0983621f Mon Sep 17 00:00:00 2001 From: Bastien Abadie <abadie@teklia.com> Date: Mon, 27 Mar 2023 16:36:43 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- arkindex_worker/worker/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkindex_worker/worker/element.py b/arkindex_worker/worker/element.py index db0d8905..19208e25 100644 --- a/arkindex_worker/worker/element.py +++ b/arkindex_worker/worker/element.py @@ -416,7 +416,7 @@ class ElementMixin(object): ) if worker_run is not None: # If worker_run=False, filter by manual worker_run e.g. None - worker_run_id = worker_run if worker_run else None + worker_run_id = worker_run or None query = query.where(CachedElement.worker_run_id == worker_run_id) return query -- GitLab