Skip to content

Commit

Permalink
Refactor research algo
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteWise committed Jul 5, 2024
1 parent 6f58a40 commit 379b533
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ func searchArticle(channelID string) string {
if href_, exists := a.Attr("href"); exists {
long_href := e.Request.AbsoluteURL(href_)
href := strings.Split(long_href, "?source")[0]
if len(strings.Split(href, "/")) > 2 {
hrefSlice = append(hrefSlice, href)
}
hrefSlice = append(hrefSlice, href)
}
}
})
Expand Down

0 comments on commit 379b533

Please sign in to comment.