fixes to dashboard
This commit is contained in:
parent
ae5cdeb472
commit
c7fbbbaeb0
@ -107,11 +107,12 @@ class DashboardWidget:
|
|||||||
"""
|
"""
|
||||||
Generate the dasboard
|
Generate the dasboard
|
||||||
"""
|
"""
|
||||||
|
from webnotes.utils import flt
|
||||||
tl = self.timeline()
|
tl = self.timeline()
|
||||||
self.out = []
|
self.out = []
|
||||||
|
|
||||||
for i in range(len(tl)-1):
|
for i in range(len(tl)-1):
|
||||||
self.out.append([tl[i+1].strftime('%Y-%m-%d'), self.value(opts, tl[i], tl[i+1]) or 0])
|
self.out.append([tl[i+1].strftime('%Y-%m-%d'), flt(self.value(opts, tl[i], tl[i+1])) or 0])
|
||||||
|
|
||||||
return self.out
|
return self.out
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user