Skip to content
Snippets Groups Projects
Commit 636a7fe8 authored by Fanna Lautenbach's avatar Fanna Lautenbach
Browse files

fix syntax warning for literal

parent 12867ab2
No related branches found
No related tags found
No related merge requests found
Pipeline #42322 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment