From 366b2a41669589dec86ec1d98219fa6d9408ce18 Mon Sep 17 00:00:00 2001 From: Will Lehman Date: Thu, 26 Sep 2024 23:21:57 +0000 Subject: [PATCH] false --- hazards/flood.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hazards/flood.go b/hazards/flood.go index c847e9c..c07f77f 100644 --- a/hazards/flood.go +++ b/hazards/flood.go @@ -409,7 +409,7 @@ func (h MultiParameterEvent) Has(p Parameter) bool { } func (d MultiParameterEvent) MarshalJSON() ([]byte, error) { s := "{\"multiparameterevent\":{" - s += fmt.Sprintf("\"parameters\":[%v],", d.Parameters()) + //s += fmt.Sprintf("\"parameters\":[%v],", d.Parameters()) if d.Has(Depth) { s += fmt.Sprintf("\"depth\":%f,", d.Depth()) } @@ -429,9 +429,9 @@ func (d MultiParameterEvent) MarshalJSON() ([]byte, error) { s += fmt.Sprintf("\"wave_height\":%f,", d.WaveHeight()) } if d.Has(Salinity) { - s += fmt.Sprintf("\"salinity\":%v,", "t") + s += fmt.Sprintf("\"salinity\":%v,", "true") } else { - s += fmt.Sprintf("\"salinity\":%v,", "f") + s += fmt.Sprintf("\"salinity\":%v,", "false") } if d.Has(Qualitative) { s += fmt.Sprintf("\"qualitative\":%s,", d.Qualitative())