Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Commit

Permalink
Pos is actually a float now, for cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Gwozdziewycz committed Jul 12, 2016
1 parent eca4260 commit 524f0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion card.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ","))
Expand Down

0 comments on commit 524f0fb

Please sign in to comment.