From 8143af119e040b1387c42e98232e6f7b90a5d6f9 Mon Sep 17 00:00:00 2001 From: shankar ambady Date: Fri, 17 Jan 2025 15:13:17 -0500 Subject: [PATCH] fixing format specifiers --- learning_resources/etl/mitxonline.py | 2 +- learning_resources/serializers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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