Commit de9f85de authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

device data nan visualization backend fixed

parent ca034ffd
......@@ -429,7 +429,7 @@ def application_device_data(appkey, devid, var, dest, page):
last = data.get_last_hours(appkey, devid, MAX_PG_ENTRIES_GRAPH_HOURS, int(page))
arr = ''
if last[0]:
arr = '[["Time", "{}"],'.format(var)
arr = '['
last = [ddm.decode_datum(d, dev[3]) for d in last[1]]
for d in last:
arr += '[new Date('+str(d[0])+'*1000),'+str(d[2][var])+'],'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment