Skip to content

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

Make codeclimate happy

michal52de1c63ebcb
diff --git a/saleor/product/templatetags/sort_menu.py b/saleor/product/templatetags/sort_menu.py
index abccd55533..d538f0553a 100644
--- a/saleor/product/templatetags/sort_menu.py
+++ b/saleor/product/templatetags/sort_menu.py
@@ -9,9 +9,9 @@ register = template.Library()
def sort_menu(context, attributes):
ctx = {
'request': context['request'],
- 'sort_by':
- context['request'].GET.get('sort_by', DEFAULT_SORT).strip('-'),
+ 'sort_by': (context['request'].GET.get('sort_by', DEFAULT_SORT)
+ .strip('-')),
'sort_by_choices': attributes,
- 'arrow_down':
- context['request'].GET.get('sort_by', DEFAULT_SORT).startswith('-')}
+ 'arrow_down': (context['request'].GET.get('sort_by', DEFAULT_SORT)
+ .startswith('-'))}
return ctx