finish table
All checks were successful
/ Plan (push) Successful in 31s
/ Plan (pull_request) Successful in 14s

This commit is contained in:
Dan Hamik 2024-11-26 00:18:34 -06:00
parent 97b66a7bbc
commit 8a32ebff4b

View File

@ -208,6 +208,8 @@ for account in accounts:
accountcount = sum(b.person == account.name for b in allbooks) accountcount = sum(b.person == account.name for b in allbooks)
if accountcount >0: if accountcount >0:
returntable += "<tr><td>" + account.name + td + str(accountcount) + "</td></tr>" returntable += "<tr><td>" + account.name + td + str(accountcount) + "</td></tr>"
totalcheckedout = len(allbooks)
returntable += "<tr><td><b>Total" + td + str(totalcheckedout) + "</b></td></tr>" + tableend
duesoon = [d for d in allbooks if (d.duedate < datetime.date.today() + datetime.timedelta(days=10)) and not (str(d.renewresult).lower() == 'None'.lower())] duesoon = [d for d in allbooks if (d.duedate < datetime.date.today() + datetime.timedelta(days=10)) and not (str(d.renewresult).lower() == 'None'.lower())]
if len(duesoon) >=1: if len(duesoon) >=1:
returntable += tablestart + '<colgroup><col/><col/></colgroup><tr><th>Type'+ th +'Count</th></tr>' returntable += tablestart + '<colgroup><col/><col/></colgroup><tr><th>Type'+ th +'Count</th></tr>'