send_locally_feed.py: use profile images
This commit is contained in:
@ -116,7 +116,9 @@ class Command(BaseCommand):
|
||||
|
||||
|
||||
def image_url(self, material):
|
||||
paths = ProductImage.get_all_image_urls(material, ProductImageFormat.MED_JPG, True)
|
||||
views = ['P', 'P2', 'PLA', 'FRONT'] # only want side views
|
||||
paths = ProductImage.get_all_image_urls(material, ProductImageFormat.MED_JPG,
|
||||
view_types=views, full_url=True)
|
||||
if len(paths) > 0:
|
||||
return paths[0]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user