From 0b1b89b6ba2aa327c21a6533ffaf279cda51cc31 Mon Sep 17 00:00:00 2001 From: "a.feteleu" Date: Tue, 19 Nov 2019 17:38:53 +0300 Subject: [PATCH] added merge migration --- .../management/commands/fill_establishment_gallery.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/establishment/management/commands/fill_establishment_gallery.py b/apps/establishment/management/commands/fill_establishment_gallery.py index cbe7d9e8..bb6edc39 100644 --- a/apps/establishment/management/commands/fill_establishment_gallery.py +++ b/apps/establishment/management/commands/fill_establishment_gallery.py @@ -21,10 +21,10 @@ class Command(BaseCommand): image_url = establishment.image_url.rstrip() relative_image_path = image_url[len(cdn_prefix):] - response = requests.head(image_url, allow_redirects=True) - if response.status_code != status.HTTP_200_OK: - not_valid_link_counter += 1 - not_valid_urls.append(image_url) + #response = requests.head(image_url, allow_redirects=True) + #if response.status_code != status.HTTP_200_OK: + # not_valid_link_counter += 1 + # not_valid_urls.append(image_url) image, image_created = Image.objects.get_or_create( orientation=Image.HORIZONTAL,