library: same default ports as post-install (8097/8098/8099); borrower home shows loans with due info

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wi3ZSot4XbUViwRFgLpRf
This commit is contained in:
Claude
2026-11-07 03:39:27 +00:00
parent f0a9728016
commit 9fb512cdab
6 changed files with 50 additions and 25 deletions
+2 -1
View File
@@ -985,7 +985,8 @@ def _loan_rows(cos):
due = (c.get("due_date") or "")[:10]
rows.append({"checkout_id": c["checkout_id"], "patron_id": c["patron_id"], "barcode": it.get("external_id") or "",
"biblio_id": it.get("biblio_id"), "title": t[0], "author": t[1], "isbn": t[2], "due": due,
"overdue": bool(due) and due < today, "renewals": c.get("renewals_count") or 0})
"overdue": bool(due) and due < today, "renewals": c.get("renewals_count") or 0,
"checkout_date": (c.get("checkout_date") or "")[:10]})
return rows