improvements in displaying the Images in the detailed view
Release Inventarsystem / release-docker (push) Successful in 2m15s

This commit is contained in:
2026-08-16 22:19:41 +02:00
parent 43e09b41f1
commit 8783f97a09
2 changed files with 20 additions and 39 deletions
+4 -1
View File
@@ -3828,7 +3828,10 @@ def api_item_detail(item_id):
"""
client.close()
return detail_html, 200
return jsonify({
'html': detail_html,
'images': item.get('Images', item.get('Bilder', []))
}), 200
except Exception as e:
app.logger.error(f"Error fetching item detail: {e}")
return jsonify({'error': 'An error occurred while fetching the item detail'}), 500