From 21dcffcded88a7316c408c1114960c825fef4c45 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 13 May 2016 13:41:11 +0200 Subject: [PATCH] data_source: dont ignore list items whose id is 0 (#10920) --- wcs/data_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/data_sources.py b/wcs/data_sources.py index 07deafa..cf8811e 100644 --- a/wcs/data_sources.py +++ b/wcs/data_sources.py @@ -147,7 +147,7 @@ def get_structured_items(data_source): items = [] for item in entries.get('data'): # skip malformed items - if not item.get('id'): + if item.get('id') is None or item.get('id') == '': continue if 'text' not in item: item['text'] = item['id'] -- 2.1.4