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')))}