From e70e1c7757ca71a500aad238816c5df9428e99a4 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Tue, 26 Nov 2024 00:20:52 -0600 Subject: [PATCH] fix table mistake --- libnotices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'