Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix style

Krzysztof Wolski324dbbf79c4c
diff --git a/saleor/data_feeds/google_merchant.py b/saleor/data_feeds/google_merchant.py
index 9bdbb0a78e..d78e051000 100644
--- a/saleor/data_feeds/google_merchant.py
+++ b/saleor/data_feeds/google_merchant.py
@@ -30,8 +30,7 @@ def get_feed_items():
items = items.select_related('product')
items = items.prefetch_related(
'images', 'stock', 'product__attributes', 'product__categories',
- 'product__images',
- )
+ 'product__images')
return items
@@ -162,8 +161,7 @@ def item_attributes(item, categories, category_paths, current_site,
item, category_paths),
'link': item_link(item, current_site),
'shipping': item_shipping(item),
- 'brand': item_brand(item)
- }
+ 'brand': item_brand(item)}
image_link = item_image_link(item, current_site)
if image_link:
@@ -211,9 +209,9 @@ def update_feed():
current_site = Site.objects.get_current()
for item in get_feed_items():
- writer.writerow(
- item_attributes(item, categories, category_paths,
- current_site, discounts))
+ item_data = item_attributes(item, categories, category_paths,
+ current_site, discounts)
+ writer.writerow(item_data)
if COMPRESSION:
output.close()
diff --git a/saleor/data_feeds/urls.py b/saleor/data_feeds/urls.py
index b655c08be4..4dd78a0749 100644
--- a/saleor/data_feeds/urls.py
+++ b/saleor/data_feeds/urls.py
@@ -5,5 +5,4 @@ from .google_merchant import FILE_URL
urlpatterns = [
url(r'saleor-feed/$',
- RedirectView.as_view(url=FILE_URL), name='saleor-feed'),
-]
+ RedirectView.as_view(url=FILE_URL), name='saleor-feed')]