Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
  • Loading branch information
fabilya committed Oct 1, 2023
1 parent 5a5fcc3 commit 82696f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def download_shopping_cart(self, request):
ingredients = (IngredientAmount.objects.filter(
recipe__shoppingcart__user=request.user
).values(
'ingredients__name',
'ingredients__measurement_unit'
).annotate(amount=Sum('recipe__amount')).order_by())
'ingredients__name',
'ingredients__measurement_unit'
).annotate(amount=Sum('recipe__amount')).order_by())

today = datetime.today()
shopping_list = (
Expand Down

0 comments on commit 82696f6

Please sign in to comment.