From 8a32ebff4bddfa318a015155d8e0ca4e9ad2c5d1 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Tue, 26 Nov 2024 00:18:34 -0600 Subject: [PATCH] finish table --- libnotices.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnotices.py b/libnotices.py index 9687bd1..d62c6bd 100644 --- a/libnotices.py +++ b/libnotices.py @@ -208,6 +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 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'