fix: set answer ID to data-answerid value (#135)
This commit is contained in:
parent
80b45bf034
commit
e278368ab7
@ -231,6 +231,8 @@ func extractAnswersData(doc *goquery.Document, domain string) ([]types.FilteredA
|
||||
doc.Find("div.answer").Each(func(i int, s *goquery.Selection) {
|
||||
var answer types.FilteredAnswer
|
||||
|
||||
answer.ID = s.AttrOr("data-answerid", "")
|
||||
|
||||
postLayout := s.Find("div.post-layout").First()
|
||||
|
||||
// Extract upvotes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user