This commit is contained in:
parent
8155ba2f8d
commit
fb3134723a
@ -356,6 +356,9 @@ class PricingService:
|
|||||||
|
|
||||||
logger.debug(f"Applying pricing algorithm: {ACTIVE_PRICING_ALGORITHIM}")
|
logger.debug(f"Applying pricing algorithm: {ACTIVE_PRICING_ALGORITHIM}")
|
||||||
|
|
||||||
|
# set listed price
|
||||||
|
df['listed_price'] = df['tcg_marketplace_price'].copy()
|
||||||
|
|
||||||
# Apply pricing algorithm
|
# Apply pricing algorithm
|
||||||
df = df.apply(self.apply_pricing_algo, axis=1)
|
df = df.apply(self.apply_pricing_algo, axis=1)
|
||||||
|
|
||||||
@ -363,6 +366,7 @@ class PricingService:
|
|||||||
if update_type == 'update':
|
if update_type == 'update':
|
||||||
df = df[df['new_price'] != df['listed_price']]
|
df = df[df['new_price'] != df['listed_price']]
|
||||||
|
|
||||||
|
|
||||||
# Set marketplace price
|
# Set marketplace price
|
||||||
df['TCG Marketplace Price'] = df['new_price']
|
df['TCG Marketplace Price'] = df['new_price']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user