Improved SCG search

This commit is contained in:
flygrounder 2019-06-12 10:27:33 +03:00
parent 017b768953
commit 5870284cfd

View file

@ -21,7 +21,7 @@ func GetSCGPrices(name string) ([]CardPrice, error) {
} }
func preprocessNameForSearch(name string) string { func preprocessNameForSearch(name string) string {
return strings.Replace(name, "|", "", 1) return strings.Split(name, "|")[0]
} }
func fetchPrices(doc *html.Node) ([]CardPrice, error) { func fetchPrices(doc *html.Node) ([]CardPrice, error) {