send_locally_feed.py: use profile images

This commit is contained in:
2020-02-19 13:07:23 -08:00
parent 908793d077
commit dc01f894f7
2 changed files with 7 additions and 5 deletions

View File

@ -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: