Skip to content
Snippets Groups Projects
Commit 26dfbff3 authored by Ludovic Claude's avatar Ludovic Claude
Browse files

Fix convertion to json of experiment

parent 9d495e55
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ import eu.hbp.mip.utils.TypesConvert;
import eu.hbp.mip.woken.messages.query.filters.FilterRule;
import eu.hbp.mip.woken.messages.variables.FeatureIdentifier;
import org.hibernate.annotations.Cascade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import scala.None$;
import scala.Option;
import scala.collection.JavaConversions;
......@@ -33,6 +35,8 @@ import java.util.UUID;
@Table(name = "`experiment`")
public class Experiment {
private static final Logger LOGGER = LoggerFactory.getLogger(Experiment.class);
private static final Gson gson = new Gson();
@Id
......@@ -194,7 +198,7 @@ public class Experiment {
exp.add("validations", jsonValidations);
}
if (this.result != null)
if (this.result != null && !this.hasServerError)
{
exp.remove("result");
JsonArray jsonResult = parser.parse(this.result).getAsJsonArray();
......
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