From 631b3bc44c326cc39ea5aeb026e01dc68be39257 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Wed, 1 Feb 2017 16:29:48 -0500 Subject: [PATCH] added handling for float attribute --- attr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/attr.go b/attr.go index 1425676cf..c85f77cad 100644 --- a/attr.go +++ b/attr.go @@ -265,6 +265,8 @@ func txUpdateAttrs(tx *bolt.Tx, id uint64, m map[string]interface{}) (map[string attr[k] = uint64(v) case uint: attr[k] = uint64(v) + case float64: + attr[k] = uint64(v) case int64: attr[k] = uint64(v) case string, uint64, bool: