FUCK
All checks were successful
Deploy App to Docker / deploy (push) Successful in 1m2s

This commit is contained in:
zman 2025-04-11 14:57:20 -04:00
parent 3601bcc81b
commit 0e5ba991db

View File

@ -27,6 +27,8 @@ class PricingService:
# function for taking a tcgplayer pricing export with all set ids and loading it into the price table
# can be run as needed or scheduled
def get_pricing_export_content(self, file: File = None) -> bytes:
if ACTIVE_PRICING_ALGORITHIM == 'default_pricing_algo' and FREE_SHIPPING == True:
print("asdf")
if file:
file_content = self.file_service.get_file_content(file.id)
else:
@ -293,7 +295,9 @@ class PricingService:
def apply_pricing_algo(self, row: pd.Series, pricing_algo: callable = None) -> pd.Series:
"""Modified to handle the pricing algorithm as an instance method"""
if pricing_algo is None or ACTIVE_PRICING_ALGORITHIM == 'default_pricing_algo':
if pricing_algo:
return pricing_algo(row)
elif ACTIVE_PRICING_ALGORITHIM == 'default_pricing_algo':
pricing_algo = self.default_pricing_algo
elif ACTIVE_PRICING_ALGORITHIM == 'tcgplayer_recommended_algo':
pricing_algo = self.tcgplayer_recommended_algo