Skip to content

Commit e1bfd9d

Browse files
authored
use more specific forum post selector (ccbrown#60)
1 parent 68e0820 commit e1bfd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/forum_indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func ScrapeForumPosts(doc *goquery.Document, timezone *time.Location) ([]*ForumP
136136

137137
err := error(nil)
138138

139-
doc.Find(".forumPostListTable tr").EachWithBreak(func(i int, sel *goquery.Selection) bool {
139+
doc.Find(".forumPostListTable > tbody > tr").EachWithBreak(func(i int, sel *goquery.Selection) bool {
140140
post := &ForumPost{
141141
Poster: sel.Find(".post_by_account").Text(),
142142
}

0 commit comments

Comments
 (0)