Skip to content

Commit

Permalink
false
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Sep 26, 2024
1 parent c82fffb commit 366b2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hazards/flood.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand All @@ -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())
Expand Down

0 comments on commit 366b2a4

Please sign in to comment.