also added space to bot

This commit is contained in:
vabene1111
2022-01-17 22:37:14 +01:00
parent c27933548d
commit 54721a0a62

View File

@@ -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: