agg add file, skip foil api pricing, update pricing algo

This commit is contained in:
2025-03-18 12:11:39 -04:00
parent 2800135375
commit 86498d54b4
4 changed files with 60 additions and 26 deletions

View File

@@ -147,6 +147,10 @@ class TCGPlayerAPIService:
if not manabox_card or not tcgplayer_card:
logger.warning(f"Card with product id {product_id} missing in either Manabox or TCGPlayer")
return None
mbfoil = manabox_card.foil
if str.lower(mbfoil) == 'foil':
logger.warning(f"Card with product id {product_id} is foil, skipping")
return None
# get scryfall id, tcgplayer id, and tcgplayer sku
scryfall_id = manabox_card.scryfall_id
tcgplayer_sku = tcgplayer_card.tcgplayer_id