From 636a7fe8b84667aad6cc16c89b6be4c9cfe7ce5a Mon Sep 17 00:00:00 2001 From: Fanna Lautenbach <lautenbach@astron.nl> Date: Thu, 12 Jan 2023 09:01:54 +0100 Subject: [PATCH] fix syntax warning for literal --- ldvspec/lofardata/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldvspec/lofardata/views.py b/ldvspec/lofardata/views.py index abe6854b..a2e78b68 100644 --- a/ldvspec/lofardata/views.py +++ b/ldvspec/lofardata/views.py @@ -175,10 +175,10 @@ def fill_unique_nested_dict(data_product, combined_data_products_on_key): for key, value in data_product.items(): if combined_data_products_on_key.get(key) and \ value not in combined_data_products_on_key.get(key) and \ - value is not None and value is not '': + value is not None and value != '': combined_data_products_on_key[key].append(value) else: - combined_data_products_on_key[key] = [value] if value is not None and value is not '' else [] + combined_data_products_on_key[key] = [value] if value is not None and value != '' else [] return combined_data_products_on_key -- GitLab