From 6f6f6aa875605a59449293ae0aa0f6ff2bbcfeaa Mon Sep 17 00:00:00 2001 From: Muhammad Abdullah Waheed Date: Mon, 25 Nov 2024 13:10:07 +0500 Subject: [PATCH] fix: liniting issues --- commerce_coordinator/apps/frontend_app_ecommerce/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))