From fb3134723ac10cf15a6b11f6de166d807a2d2817 Mon Sep 17 00:00:00 2001 From: zman Date: Mon, 14 Apr 2025 22:27:37 -0400 Subject: [PATCH] sadf --- app/services/pricing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/pricing.py b/app/services/pricing.py index d6f0287..97793a7 100644 --- a/app/services/pricing.py +++ b/app/services/pricing.py @@ -355,6 +355,9 @@ 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) @@ -362,6 +365,7 @@ class PricingService: # if update type is update, remove rows where new_price == listed_price if update_type == 'update': df = df[df['new_price'] != df['listed_price']] + # Set marketplace price df['TCG Marketplace Price'] = df['new_price']