fix account property
All checks were successful
/ Plan (push) Successful in 33s
/ Plan (pull_request) Successful in 15s

This commit is contained in:
Dan Hamik 2024-11-26 00:12:21 -06:00
parent 362e57c770
commit d832b9a5bd

View File

@ -205,7 +205,7 @@ th="</th><th>"
#returntable = '<a href="https://librarynotice.hamik.net">Click to return to main list</a>'
returntable += tablestart + '<colgroup><col/><col/></colgroup><tr><th>Name'+ th +'Count</th></tr>'
for account in accounts:
accountcount = sum(b.person == account.person for b in allbooks)
accountcount = sum(b.person == account.name for b in allbooks)
if accountcount >0:
returntable += "<tr><td>" + account.person + td + str(accountcount) + "</td></tr>"
duesoon = [d for d in allbooks if (d.duedate < datetime.date.today() + datetime.timedelta(days=10)) and not (str(d.renewresult).lower() == 'None'.lower())]