Skip to content

Commit

Permalink
mtgban: Relax requirements for registering a market scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
kodawah committed Apr 29, 2024
1 parent c829db9 commit c9baf55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mtgban/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (bc *BanClient) RegisterSeller(scraper Scraper) {
// Add a Scraper to the client, enable the Market with the given shorthand
func (bc *BanClient) RegisterMarket(scraper Scraper, shorthand string) {
market := &BaseMarket{}
market.scraper = scraper.(Market)
market.scraper = scraper.(Seller)
market.info = scraper.Info()
market.info.Name = shorthand
market.info.Shorthand = shorthand
Expand Down
2 changes: 1 addition & 1 deletion mtgban/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func InventoryForSeller(seller Seller, sellerName string) (InventoryRecord, erro
type BaseMarket struct {
inventory InventoryRecord
info ScraperInfo
scraper Market
scraper Seller
}

func (m *BaseMarket) Inventory() (InventoryRecord, error) {
Expand Down

0 comments on commit c9baf55

Please sign in to comment.