fixed PEP8 warnings
parent
f4166091b7
commit
087815c219
|
@ -28,7 +28,6 @@ def export(report,
|
||||||
####################################################################################################################
|
####################################################################################################################
|
||||||
if report is None:
|
if report is None:
|
||||||
return None
|
return None
|
||||||
print(report)
|
|
||||||
|
|
||||||
####################################################################################################################
|
####################################################################################################################
|
||||||
# Step 2: Generate excel file from the report data
|
# Step 2: Generate excel file from the report data
|
||||||
|
@ -389,7 +388,7 @@ def generate_excel(report,
|
||||||
chart_start_row_number += 6
|
chart_start_row_number += 6
|
||||||
ws.add_chart(line, chart_cell)
|
ws.add_chart(line, chart_cell)
|
||||||
|
|
||||||
####################################################################################################################
|
################################################################################################################
|
||||||
|
|
||||||
has_associated_equipment_flag = True
|
has_associated_equipment_flag = True
|
||||||
|
|
||||||
|
@ -446,8 +445,6 @@ def generate_excel(report,
|
||||||
ws[col + row].alignment = c_c_alignment
|
ws[col + row].alignment = c_c_alignment
|
||||||
ws[col + row] = round(associated_equipment['subtotals_array'][j][i], 2)
|
ws[col + row] = round(associated_equipment['subtotals_array'][j][i], 2)
|
||||||
ws[col + row].border = f_border
|
ws[col + row].border = f_border
|
||||||
##########################################
|
|
||||||
|
|
||||||
####################################################################################################################
|
####################################################################################################################
|
||||||
|
|
||||||
if has_parameters_names_and_timestamps_and_values_data:
|
if has_parameters_names_and_timestamps_and_values_data:
|
||||||
|
|
|
@ -695,7 +695,6 @@ class Reporting:
|
||||||
|
|
||||||
if energy_category_set is not None and len(energy_category_set) > 0:
|
if energy_category_set is not None and len(energy_category_set) > 0:
|
||||||
for energy_category_id in energy_category_set:
|
for energy_category_id in energy_category_set:
|
||||||
|
|
||||||
associated_equipment_data[energy_category_id] = dict()
|
associated_equipment_data[energy_category_id] = dict()
|
||||||
associated_equipment_data[energy_category_id]['associated_equipment_names'] = list()
|
associated_equipment_data[energy_category_id]['associated_equipment_names'] = list()
|
||||||
associated_equipment_data[energy_category_id]['subtotals'] = list()
|
associated_equipment_data[energy_category_id]['subtotals'] = list()
|
||||||
|
|
Loading…
Reference in New Issue