diff --git a/learning_resources/etl/mitxonline.py b/learning_resources/etl/mitxonline.py index b457731da0..4968666bc6 100644 --- a/learning_resources/etl/mitxonline.py +++ b/learning_resources/etl/mitxonline.py @@ -225,7 +225,7 @@ def _transform_run(course_run: dict, course: dict) -> dict: transform_price(price) for price in sorted( { - Decimal(0.00), + Decimal("0.00"), *[ Decimal(price) for price in [ diff --git a/learning_resources/serializers.py b/learning_resources/serializers.py index cfc241e360..01f3a23786 100644 --- a/learning_resources/serializers.py +++ b/learning_resources/serializers.py @@ -488,7 +488,7 @@ def get_free(self, instance) -> bool: ]: prices = [price.amount for price in instance.resource_prices.all()] return not instance.professional and ( - Decimal(0.00) in prices or not prices or prices == [] + Decimal("0.00") in prices or not prices or prices == [] ) else: return True