1 parent 2661d9f commit dda2655Copy full SHA for dda2655
1 file changed
lesswrong/types.go
@@ -27,8 +27,8 @@ type lwPost struct {
27
URL string `json:"url"`
28
PageURL string `json:"pageUrl"`
29
PostedAt string `json:"postedAt"`
30
- Score int `json:"score"`
31
- BaseScore int `json:"baseScore"`
+ Score float64 `json:"score"`
+ BaseScore float64 `json:"baseScore"`
32
CommentCount int `json:"commentCount"`
33
WordCount int `json:"wordCount"`
34
VoteCount int `json:"voteCount"`
@@ -95,7 +95,7 @@ func wireToPost(p lwPost, rank int) Post {
95
Rank: rank,
96
Title: p.Title,
97
Author: author,
98
- Score: p.Score,
+ Score: int(p.Score),
99
Comments: p.CommentCount,
100
Words: p.WordCount,
101
Tags: tags,
0 commit comments