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',
'\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]
else:
vals = SimpleArray(vals[0])
vals = SimpleArray(vals)
if not has_error:
localdict[kpi.name] = vals

Loading…
Cancel
Save