Merge pull request 'fix account property' (#27) from work into main

Reviewed-on: #27
This commit is contained in:
paradizelost 2024-11-26 00:12:32 -06:00
commit d79b734f2f

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())]