aboutsummaryrefslogtreecommitdiff
path: root/pkg/model/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/model/types.go')
-rw-r--r--pkg/model/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/model/types.go b/pkg/model/types.go
index fd65d46..8b1106d 100644
--- a/pkg/model/types.go
+++ b/pkg/model/types.go
@@ -33,7 +33,7 @@ func (s *Sex) UnmarshalJSON(b []byte) error {
return nil
}
}
- // also accept numbers in JSON
+
var n int
if err := json.Unmarshal(b, &n); err == nil {
*s = Sex(n)