Compare commits

...

2 Commits

Author SHA1 Message Date
Aiirondev_dev 39302d4d1f CHanges to the In and out 2026-07-27 14:53:09 +02:00
Aiirondev_dev e46f8b0c66 finisch of the borrower funktion 2026-07-27 14:43:39 +02:00
+6 -3
View File
@@ -3605,8 +3605,10 @@ def api_item_detail(item_id):
borrows_html = ''
if borrow_records:
rows = []
while len(rows) < 3:
for rec in borrow_records:
count = 1
for rec in borrow_records:
while count < 3:
user_raw = rec.get('User')
try:
user = decrypt_text(user_raw) if user_raw is not None else ''
@@ -3623,7 +3625,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>