diff --git a/card.go b/card.go index 0cc3119..ed7e943 100644 --- a/card.go +++ b/card.go @@ -35,7 +35,7 @@ type Card struct { IdMembersVoted []string `json:"idMembersVoted"` ManualCoverAttachment bool `json:"manualCoverAttachment"` Closed bool `json:"closed"` - Pos int `json:"pos"` + Pos float32 `json:"pos"` ShortLink string `json:"shortLink"` DateLastActivity string `json:"dateLastActivity"` ShortUrl string `json:"shortUrl"` diff --git a/list.go b/list.go index 23f5efe..86d2546 100644 --- a/list.go +++ b/list.go @@ -77,7 +77,7 @@ func (l *List) AddCard(opts Card) (*Card, error) { payload := url.Values{} payload.Set("name", opts.Name) payload.Set("desc", opts.Desc) - payload.Set("pos", strconv.Itoa(opts.Pos)) + payload.Set("pos", strconv.FormatFloat(float64(opts.Pos), 'f', 1, 32)) payload.Set("due", opts.Due) payload.Set("idList", opts.IdList) payload.Set("idMembers", strings.Join(opts.IdMembers, ","))