From 0ea5d2db264adb6ce99f32f603e832829a731a05 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Mon, 17 Aug 2026 00:39:38 +0200 Subject: [PATCH] Error fixing and debugging implementation. --- Web/app.py | 7 +++++-- Web/templates/library_table.html | 11 ++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Web/app.py b/Web/app.py index 0eac09b..9b50f3a 100755 --- a/Web/app.py +++ b/Web/app.py @@ -3826,11 +3826,14 @@ def api_item_detail(item_id): {f'

Ausgeliehen von: {html.escape(str(borrower_value))}

' if borrower_value and status_label == 'Ausgeliehen' else ''} {borrows_html} """ - + ctx = get_tenant_context() + current_tenant_id = ctx.tenant_id if ctx else None + client.close() return jsonify({ 'html': detail_html, - 'images': item.get('Images', item.get('Bilder', [])) + 'images': item.get('Images', item.get('Bilder', [])), + 'tenant': str(current_tenant_id) }), 200 except Exception as e: app.logger.error(f"Error fetching item detail: {e}") diff --git a/Web/templates/library_table.html b/Web/templates/library_table.html index 1825eac..c161568 100644 --- a/Web/templates/library_table.html +++ b/Web/templates/library_table.html @@ -1381,9 +1381,14 @@ : `/uploads/${image}`; return ` -
- Buchcover / Bild -
+
+ Buchcover +
`; }).join('');