Implement CSV download for all parameters

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2018-12-27 01:21:18 -08:00
1 parent 4016f3acfd
commit d27247e265
4 files changed
+61 -2

No files matched your search

+4 -1
View File
@@ -330,7 +330,10 @@ function flattenDevice(device) {
const attrs = {};
if (tree["_value"] != null) {
attrs["value"] = [tree["_value"], tree["_type"]];
attrs["value"] = [
tree["_value"] instanceof Date ? +tree["_value"] : tree["_value"],
tree["_type"]
];
attrs["valueTimestamp"] = +(tree["_timestamp"] || childrenTimestamp);
attrs["object"] = false;
attrs["objectTimestamp"] = childrenTimestamp;