order fix
This commit is contained in:
@@ -39,8 +39,10 @@ class TCGPlayerAPIService:
|
||||
|
||||
def get_product_ids_from_sku(self, sku_ids: list[str]) -> dict:
|
||||
"""Get product IDs from TCGPlayer SKU IDs"""
|
||||
# convert SKU IDs to integers
|
||||
sku_ids = [int(sku_id) for sku_id in sku_ids]
|
||||
tcg_cards = self.db.query(CardTCGPlayer).filter(CardTCGPlayer.tcgplayer_id.in_(sku_ids)).all()
|
||||
return {card.tcgplayer_id: card.product_id for card in tcg_cards}
|
||||
return {str(card.tcgplayer_id): card.product_id for card in tcg_cards}
|
||||
|
||||
def save_order(self, order: dict):
|
||||
# check if order exists by order number
|
||||
|
Reference in New Issue
Block a user