Cut utm_source from url in cardview
This commit is contained in:
parent
3e2efa7660
commit
438d348483
@ -3,6 +3,7 @@ package serra
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"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("* %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(" Added: %s\n", stringToTime(card.SerraCreated))
|
||||||
fmt.Printf(" Rarity: %s\n", card.Rarity)
|
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(" Current Value: %s%.2f EUR%s\n", Yellow, card.Prices.Eur, Reset)
|
||||||
fmt.Printf(" History:\n")
|
fmt.Printf(" History:\n")
|
||||||
for _, e := range card.SerraPrices {
|
for _, e := range card.SerraPrices {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user