diff --git a/commerce_coordinator/apps/frontend_app_ecommerce/views.py b/commerce_coordinator/apps/frontend_app_ecommerce/views.py index 29aa5fa3..86dd5512 100644 --- a/commerce_coordinator/apps/frontend_app_ecommerce/views.py +++ b/commerce_coordinator/apps/frontend_app_ecommerce/views.py @@ -103,12 +103,13 @@ def get(self, request): output_orders.extend(order_set['results']) output = { - "count": request.query_params['page_size'], # This suppresses the ecomm mfe Order History Pagination ctrl + # This suppresses the ecomm mfe Order History Pagination control + "count": request.query_params['page_size'], "next": None, "previous": None, "results": sorted(output_orders, key=lambda item: date_conv(item["date_placed"]), reverse=True) } return Response(output) - except Exception as exc: + except Exception as exc: # pylint: disable=broad-except return Response(status=HTTP_400_BAD_REQUEST, data=str(exc))