ugly but working shopping list

This commit is contained in:
vabene1111
2024-10-17 20:41:39 +02:00
parent e406bdbc2c
commit 615e3bfa3d
4 changed files with 416 additions and 22 deletions

View File

@@ -2017,7 +2017,7 @@ def meal_plans_to_ical(queryset, filename):
@api_view(['POST'])
@permission_classes([CustomIsUser & CustomTokenHasReadWriteScope])
def ingredient_from_string(request):
text = request.POST['text']
text = request.data['text']
ingredient_parser = IngredientParser(request, False)
amount, unit, food, note = ingredient_parser.parse(text)