added export support for recipe sage

This commit is contained in:
vabene1111
2021-03-28 19:29:09 +02:00
parent ba1e18410a
commit c1287407a3
5 changed files with 72 additions and 30 deletions

View File

@@ -78,7 +78,7 @@ def export_recipe(request):
if form.is_valid():
try:
recipes = form.cleaned_data['recipes']
if form['all']:
if form.cleaned_data['all']:
recipes = Recipe.objects.filter(space=request.space, internal=True).all()
integration = get_integration(request, form.cleaned_data['type'])
return integration.do_export(recipes)