This commit is contained in:
zman 2025-02-14 23:32:20 -05:00
parent 3f8a99b61a
commit 92d1356c0e

View File

@ -130,7 +130,7 @@ class PricingService:
elif tcg_market_price < 0.25: elif tcg_market_price < 0.25:
new_price = 0.25 new_price = 0.25
elif tcg_low < 5 or tcg_low_shipping < 5: elif tcg_low < 5 or tcg_low_shipping < 5:
new_price = round(tcg_low+((tcg_market_price-tcg_low)/2), 2) new_price = round(tcg_low+((abs(tcg_market_price-tcg_low))/2), 2)
elif tcg_low_shipping > 20: elif tcg_low_shipping > 20:
new_price = round(tcg_low_shipping * 1.0125, 2) new_price = round(tcg_low_shipping * 1.0125, 2)
else: else:
@ -138,6 +138,8 @@ class PricingService:
# if new price is less than half of market price, set to 90% market # if new price is less than half of market price, set to 90% market
if new_price < (tcg_market_price / 2): if new_price < (tcg_market_price / 2):
new_price = round(tcg_market_price * 0.85, 2) new_price = round(tcg_market_price * 0.85, 2)
if new_price < 0.25:
new_price = 0.25
row['new_price'] = new_price row['new_price'] = new_price
return row return row