asdfsad
All checks were successful
Deploy App to Docker / deploy (push) Successful in 19s

This commit is contained in:
zman 2025-04-20 19:29:33 -04:00
parent b151ef9920
commit 976f2683a4

View File

@ -342,6 +342,8 @@ class PricingService:
.filter(CardTCGPlayer.tcgplayer_id.in_(tcgplayer_ids))
.all()
}
# set listed price
df['listed_price'] = df['tcg_marketplace_price'].copy()
# Map tcgplayer_id to product_id, ensure strings, keep None if not found
df['product_id'] = df['tcgplayer_id'].map(product_id_mapping).apply(lambda x: str(x) if pd.notnull(x) else None)
@ -358,9 +360,6 @@ class PricingService:
logger.debug(f"Applying pricing algorithm: {ACTIVE_PRICING_ALGORITHIM}")
# set listed price
df['listed_price'] = df['tcg_marketplace_price'].copy()
# Apply pricing algorithm
df = df.apply(self.apply_pricing_algo, axis=1)