fix account property
This commit is contained in:
parent
362e57c770
commit
d832b9a5bd
@ -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())]
|
||||
|
Loading…
x
Reference in New Issue
Block a user