diff --git a/libnotices.py b/libnotices.py index d62c6bd..5a3b1ed 100644 --- a/libnotices.py +++ b/libnotices.py @@ -208,8 +208,8 @@ for account in accounts: accountcount = sum(b.person == account.name for b in allbooks) if accountcount >0: returntable += "" + account.name + td + str(accountcount) + "" - totalcheckedout = len(allbooks) - returntable += "Total" + td + str(totalcheckedout) + "" + tableend +totalcheckedout = len(allbooks) +returntable += "Total" + td + str(totalcheckedout) + "" + 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())] if len(duesoon) >=1: returntable += tablestart + 'Type'+ th +'Count'