improvements in displaying the Images in the detailed view
Release Inventarsystem / release-docker (push) Successful in 2m15s
Release Inventarsystem / release-docker (push) Successful in 2m15s
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user