Browse Source

[FIX] mis_builder: multi-kpi comparison column ordering

pull/189/head
Stéphane Bidoul 9 years ago
parent
commit
5fd1c48574
  1. 5
      mis_builder/models/mis_report.py

5
mis_builder/models/mis_report.py

@ -259,8 +259,9 @@ class KpiMatrix(object):
base_col.description))
description = u'{} vs {}'.\
format(col.description, base_col.description)
comparison_col = KpiMatrixCol(description, None,
{}, col.subkpis)
comparison_col = KpiMatrixCol(description, None, {},
sorted(common_subkpis,
key=lambda s: s.sequence))
for row in self.iter_rows():
cell_tuple = col.get_cell_tuple_for_row(row)
base_cell_tuple = base_col.get_cell_tuple_for_row(row)

Loading…
Cancel
Save