Improved SCG search
This commit is contained in:
parent
017b768953
commit
5870284cfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue