mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
ugly but working shopping list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user