Skip to content

Commit

Permalink
fix: liniting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahwaheed committed Nov 25, 2024
1 parent 1c65627 commit 6f6f6aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commerce_coordinator/apps/frontend_app_ecommerce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check failure on line 115 in commerce_coordinator/apps/frontend_app_ecommerce/views.py

View workflow job for this annotation

GitHub Actions / tests (ubuntu-20.04, 3.8, django42)

Missing coverage

Missing coverage on lines 114-115

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.

0 comments on commit 6f6f6aa

Please sign in to comment.