mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-19 13:29:15 +00:00
fix: set answer ID to data-answerid value (#135)
This commit is contained in:
parent
80b45bf034
commit
e278368ab7
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue