Skip to content

Commit

Permalink
fixing format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
shanbady committed Jan 17, 2025
1 parent 6fa4e4e commit 8143af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion learning_resources/etl/mitxonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
2 changes: 1 addition & 1 deletion learning_resources/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8143af1

Please sign in to comment.