added basic AI import and improved display for external recipes

This commit is contained in:
vabene1111
2025-08-16 15:08:25 +02:00
parent 4bd3da451d
commit 86fc4aa2d0
39 changed files with 181 additions and 49 deletions

View File

@@ -1891,6 +1891,12 @@ class AiImportView(APIView):
messages = []
uploaded_file = serializer.validated_data['file']
if serializer.validated_data['recipe_id']:
if recipe := Recipe.objects.filter(id=serializer.validated_data['recipe_id']).first():
if recipe.file_path:
uploaded_file = get_recipe_provider(recipe).get_file(recipe)
if uploaded_file:
base64type = None
try: