mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 07:38:26 -05:00
also added space to bot
This commit is contained in:
@@ -52,9 +52,7 @@ def hook(request, token):
|
|||||||
f = ingredient_parser.get_food(ingredient)
|
f = ingredient_parser.get_food(ingredient)
|
||||||
u = ingredient_parser.get_unit(unit)
|
u = ingredient_parser.get_unit(unit)
|
||||||
|
|
||||||
ShoppingListEntry.objects.create(
|
ShoppingListEntry.objects.create(food=f, unit=u, amount=amount, created_by=request.user, space=request.space)
|
||||||
food=f, unit=u, amount=amount, created_by=request.user
|
|
||||||
)
|
|
||||||
|
|
||||||
return JsonResponse({'data': data['message']['text']})
|
return JsonResponse({'data': data['message']['text']})
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user