Created
July 30, 2015 15:18
-
-
Save fchevitarese/ef6b3fb1645b1771c114 to your computer and use it in GitHub Desktop.
Values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data.forEach(function (harvest) { | |
var values = harvest.values, | |
h = new Harvest(); | |
h.id = harvest.id; | |
h.uuid = harvest.uuid; | |
h.device = harvest.device; | |
h.date = harvest.created; | |
h.values = []; | |
values.forEach(function (value) { | |
var v = new Value(value); | |
v.datadoc = JSON.parse(value.datadoc); | |
h.values.push(v); | |
}); | |
harvests.push(h); | |
}); |
samirbr
commented
Jul 30, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment