GWM
This commit is contained in:
parent
932ff77bd1
commit
7ca84f775d
BIN
pb_data/logs.db
BIN
pb_data/logs.db
Binary file not shown.
@ -284,7 +284,15 @@ func extractRecordKeyValue(data []Observation, key string, additionalkey string,
|
||||
case "total", "average", "different":
|
||||
if val1, exists1 := data[0].ObsKey[key]; exists1 {
|
||||
if val2, exists2 := data[len(data)-1].ObsKey[key]; exists2 {
|
||||
return val1 + " - " + val2
|
||||
if val1 == val2 {
|
||||
return val1
|
||||
} else {
|
||||
if val1 > val2 {
|
||||
return val2 + " - " + val1
|
||||
} else {
|
||||
return val1 + " - " + val2
|
||||
}
|
||||
}
|
||||
}
|
||||
return val1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user