Skip to content

Commit

Permalink
fix: obtain course images from image_url.
Browse files Browse the repository at this point in the history
  • Loading branch information
anfbermudezme committed Nov 3, 2023
1 parent 4113cc0 commit 6603d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ecommerce/courses/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from ecommerce.core.utils import deprecated_traverse_pagination, get_cache_key
from edx_django_utils.cache import TieredCache
from opaque_keys.edx.keys import CourseKey

from ecommerce.core.utils import deprecated_traverse_pagination, get_cache_key


LMS_COURSES_API_BASE_URL = '/api/courses/v1/courses/'


Expand Down
2 changes: 1 addition & 1 deletion ecommerce/extensions/api/v2/views/vouchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_course_offer_data(
image = course_info['card_image_url']
else:
# Get the course image from the LMS course API format.
image = course_info.get('media', {}).get('image', {}).get('raw', '')
image = course_info.get('image_url', '')
return {
'benefit': serializers.BenefitSerializer(benefit).data,
'contains_verified': is_verified,
Expand Down

0 comments on commit 6603d4f

Please sign in to comment.