From e46f8b0c665a41bcff2fe3f95ca870309f79c549 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Mon, 27 Jul 2026 14:43:39 +0200 Subject: [PATCH] finisch of the borrower funktion --- Web/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Web/app.py b/Web/app.py index ca8c90b..4acdda8 100755 --- a/Web/app.py +++ b/Web/app.py @@ -3605,7 +3605,8 @@ def api_item_detail(item_id): borrows_html = '' if borrow_records: rows = [] - while len(rows) < 3: + count = 1 + while count < 3: for rec in borrow_records: user_raw = rec.get('User') try: @@ -3623,7 +3624,8 @@ def api_item_detail(item_id): f"{html.escape(str(start))} → {html.escape(str(end))}" f"{(' — ' + notes) if notes else ''}" ) - borrows_html = f"

Ausleihhistorie

" + count += 1 + borrows_html = f"

Ausleihhistorie

" detail_html = f"""

{html.escape(str(item.get('Name', 'Untitled')))}