finisch of the borrower funktion

This commit is contained in:
2026-07-27 14:43:39 +02:00
parent 06486f039f
commit e46f8b0c66
+4 -2
View File
@@ -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 ''}</li>"
)
borrows_html = f"<h3>Ausleihhistorie</h3><ul>{''.join(rows)}</ul>"
count += 1
borrows_html = f"<h3>Ausleihhistorie</h3><ul>{''.join(rows)}</ul>"
detail_html = f"""
<h2>{html.escape(str(item.get('Name', 'Untitled')))}</h2>