Sessions: round odometer to single digit
This commit is contained in:
parent
d9b913e8bd
commit
48931c4a65
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ func sessionHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
// prepare data
|
||||
for _, s := range res {
|
||||
s.Odometer = math.Round(s.Odometer*10) / 10
|
||||
for i, s := range res {
|
||||
res[i].Odometer = math.Round(s.Odometer*10) / 10
|
||||
}
|
||||
|
||||
if r.URL.Query().Get("format") == "csv" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue