Browse Source

[FIX] fix error with simple expression

pull/189/head
Sébastien BEAU 9 years ago
committed by Stéphane Bidoul
parent
commit
0a6ea59ec8
  1. 6
      mis_builder/models/mis_builder.py

6
mis_builder/models/mis_builder.py

@ -555,12 +555,10 @@ class MisReport(models.Model):
'#ERR', '#ERR',
'\n\n%s' % (traceback.format_exc(),))) '\n\n%s' % (traceback.format_exc(),)))
if kpi.multi:
vals = SimpleArray(vals)
elif isinstance(vals[0], SimpleArray):
if len(vals) == 1 and isinstance(vals[0], SimpleArray):
vals = vals[0] vals = vals[0]
else: else:
vals = SimpleArray(vals[0])
vals = SimpleArray(vals)
if not has_error: if not has_error:
localdict[kpi.name] = vals localdict[kpi.name] = vals

Loading…
Cancel
Save