Cut utm_source from url in cardview

This commit is contained in:
Florian Baumann 2022-01-11 08:55:34 +01:00
parent 3e2efa7660
commit 438d348483

View File

@ -3,6 +3,7 @@ package serra
import (
"errors"
"fmt"
"strings"
"time"
"go.mongodb.org/mongo-driver/bson"
@ -69,7 +70,7 @@ func show_card_details(card *Card) error {
fmt.Printf("* %dx %s%s%s (%s/%s)\n", card.SerraCount, Purple, card.Name, Reset, card.Set, card.CollectorNumber)
fmt.Printf(" Added: %s\n", stringToTime(card.SerraCreated))
fmt.Printf(" Rarity: %s\n", card.Rarity)
fmt.Printf(" Scryfall: %s\n", card.ScryfallURI)
fmt.Printf(" Scryfall: %s\n", strings.Replace(card.ScryfallURI, "?utm_source=api", "", 1))
fmt.Printf(" Current Value: %s%.2f EUR%s\n", Yellow, card.Prices.Eur, Reset)
fmt.Printf(" History:\n")
for _, e := range card.SerraPrices {