mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-21 06:19:14 +00:00
fix: set answer ID to data-answerid value
This commit is contained in:
parent
80b45bf034
commit
471e34b5e6
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) {
|
doc.Find("div.answer").Each(func(i int, s *goquery.Selection) {
|
||||||
var answer types.FilteredAnswer
|
var answer types.FilteredAnswer
|
||||||
|
|
||||||
|
answer.ID = s.AttrOr("data-answerid", "")
|
||||||
|
|
||||||
postLayout := s.Find("div.post-layout").First()
|
postLayout := s.Find("div.post-layout").First()
|
||||||
|
|
||||||
// Extract upvotes.
|
// Extract upvotes.
|
||||||
|
|
Loading…
Add table
Reference in a new issue