From 976f2683a4db741ef6cdce607f921a6c73c381c3 Mon Sep 17 00:00:00 2001 From: zman Date: Sun, 20 Apr 2025 19:29:33 -0400 Subject: [PATCH] asdfsad --- app/services/pricing.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/services/pricing.py b/app/services/pricing.py index 025e4f5..ce575d6 100644 --- a/app/services/pricing.py +++ b/app/services/pricing.py @@ -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) @@ -357,9 +359,6 @@ class PricingService: df = df.apply(lambda row: self.apply_price_to_df_columns(row, price_lookup), axis=1) 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)