Commit 7a9fa7e7 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Mathieu Giraud
Browse files

model_loader.js analysis parsing copy exceptions

Added an array of fields that should not be copied over to the model.
This is a quick fix rather than restructuring the whole json.
parent c0e55e80
......@@ -412,9 +412,11 @@ Model_loader.prototype = {
if (this.analysis.samples) {
var s = this.analysis.samples
// Hacky way of managing fields we do not want to copy without restructuring the whole JSON
var copy_exceptions = ['log', 'producer']
//replace names, timestamps, order...
for (var key in s)
if (key != "log" && s[key].length == this.samples.number)
if (!(key in copy_exceptions) && s[key].length == this.samples.number)
this.samples[key] = s[key]
Markdown is supported
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