From d832b9a5bde680c7fe7b27c01ebecbd56d940dc1 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Tue, 26 Nov 2024 00:12:21 -0600 Subject: [PATCH] fix account property --- libnotices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnotices.py b/libnotices.py index abf4def..2b3afe6 100644 --- a/libnotices.py +++ b/libnotices.py @@ -205,7 +205,7 @@ th="" #returntable = 'Click to return to main list' returntable += tablestart + 'Name'+ th +'Count' 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 += "" + account.person + td + str(accountcount) + "" duesoon = [d for d in allbooks if (d.duedate < datetime.date.today() + datetime.timedelta(days=10)) and not (str(d.renewresult).lower() == 'None'.lower())]