Feat: Add ability to ban cards and display it
This commit is contained in:
parent
899bdd4714
commit
2d1b64fdd3
7 changed files with 42 additions and 25 deletions
|
@ -31,6 +31,7 @@ type CacheCarteListItem struct {
|
|||
NumberOfPossibleDecks int
|
||||
PercentageOfDecks float64
|
||||
Synergy float64
|
||||
Banned bool
|
||||
}
|
||||
|
||||
type CacheCarteListItemWithSynergy struct {
|
||||
|
@ -307,5 +308,6 @@ func CreateCardData(c Carte, decksByBset map[string][]Deck, numberOfDecksPerColo
|
|||
NumberOfDecks: numberOfDecksPerCard[c.ID],
|
||||
NumberOfPossibleDecks: numberOfPossibleDecks,
|
||||
PercentageOfDecks: percentageOfDecks,
|
||||
Banned: c.Banned,
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -38,6 +38,7 @@ type Carte struct {
|
|||
Price string `db:"price" json:"price"`
|
||||
CardmarketUri string `db:"cardmarket_url" json:"cardmarket_url"`
|
||||
CanBeCommander bool `db:"can_be_commander" json:"can_be_commander"`
|
||||
Banned bool `db:"banned" json:"banned"`
|
||||
}
|
||||
|
||||
type DeckCard struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue