BACKEND EN VERSION 1.0.55 CORREGIR ERROR PARA OBENTER IAMGENES LINK PAR ENVIAR A N8N
This commit is contained in:
@@ -112,10 +112,13 @@ def send_completed_inspection_to_n8n(inspection, db):
|
||||
imagenes = []
|
||||
for media in answer.media_files:
|
||||
if media.file_type == "image":
|
||||
# Extraer filename del file_path (última parte de la URL)
|
||||
filename = media.file_path.split('/')[-1] if media.file_path else "imagen.jpg"
|
||||
|
||||
imagenes.append({
|
||||
"id": media.id,
|
||||
"url": media.file_path,
|
||||
"filename": media.filename
|
||||
"filename": filename
|
||||
})
|
||||
|
||||
respuestas_data.append({
|
||||
|
||||
Reference in New Issue
Block a user