Skip to content

Commit

Permalink
Add url in check detail output
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Sep 5, 2024
1 parent fadb1c6 commit 4d0e75d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/serra/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ func checkCards(cards []string, detail bool) error {
// If Card is in collection, print yes.
if len(co) >= 1 {
c := co[0]
fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency())
fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s) %s\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency(), strings.Replace(c.ScryfallURI, "?utm_source=api", "", 1))
continue
} else {
if detail {
// fetch card from scyrfall if --detail was given
c, _ := fetchCard(setName, collectorNumber)
fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency())
fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s) %s\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency(), strings.Replace(c.ScryfallURI, "?utm_source=api", "", 1))
} else {
// Just print, the card name was not found
fmt.Printf("MISSING \"%s\"\n", card)
Expand Down

0 comments on commit 4d0e75d

Please sign in to comment.