0001-data_source-dont-ignore-list-items-without-text-1079.patch
wcs/data_sources.py | ||
---|---|---|
89 | 89 |
tupled_items = [] |
90 | 90 |
for item in structured_items: |
91 | 91 |
# skip malformed items |
92 |
if not item.get('id') or not item.get('text'):
|
|
92 |
if not item.get('id'): |
|
93 | 93 |
continue |
94 |
tupled_items.append((str(item['id']), str(item['text']), str(item.get('key', item['id'])))) |
|
94 |
tupled_items.append((str(item['id']), |
|
95 |
str(item.get('text') or ''), |
|
96 |
str(item.get('key', item['id'])))) |
|
95 | 97 |
return tupled_items |
96 | 98 | |
97 | 99 | |
98 |
- |