Improved the SpaceSaving Execl Exporter
parent
e8660f2772
commit
a94fd8f023
|
@ -432,11 +432,12 @@ def generate_excel(report,
|
||||||
|
|
||||||
has_child_space_data_flag = True
|
has_child_space_data_flag = True
|
||||||
|
|
||||||
if 'child_space' not in report.keys() or \
|
if "child_space" not in report.keys() or "energy_category_names" not in report['child_space'].keys() or \
|
||||||
report['child_space'] is None or \
|
len(report['child_space']["energy_category_names"]) == 0 \
|
||||||
'energy_category_names' not in report['child_space'].keys() or \
|
or 'child_space_names_array' not in report['child_space'].keys() \
|
||||||
report['child_space']['energy_category_names'] is None or \
|
or report['child_space']['energy_category_names'] is None \
|
||||||
len(report['child_space']['energy_category_names']) == 0:
|
or len(report['child_space']['child_space_names_array']) == 0 \
|
||||||
|
or len(report['child_space']['child_space_names_array'][0]) == 0:
|
||||||
has_child_space_data_flag = False
|
has_child_space_data_flag = False
|
||||||
|
|
||||||
if has_child_space_data_flag:
|
if has_child_space_data_flag:
|
||||||
|
|
Loading…
Reference in New Issue