Commit 0ddd63b9 authored by Yusei Tahara's avatar Yusei Tahara

Fix a bug. Some variation categories may not be selected.

parent f4c79114
...@@ -540,8 +540,9 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list): ...@@ -540,8 +540,9 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
index_list = line.index[base_id].keys() index_list = line.index[base_id].keys()
index_list.sort() index_list.sort()
for index in index_list: for index in index_list:
base_category = line.index[base_id][index].keys()[0].split('/')[0] if line.index[base_id][index]:
result.append(category_dict[base_category]) base_category = line.index[base_id][index].keys()[0].split('/')[0]
result.append(category_dict[base_category])
return result return result
for cell_dict in cell_dict_list: for cell_dict in cell_dict_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment