From c56a6526dc6e8afd1ec91b4e5e3b013e3d009744 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Mon, 25 Nov 2024 23:50:49 -0600 Subject: [PATCH] #21 remove returnlist --- libnotices.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libnotices.py b/libnotices.py index b2f09a8..6574ee7 100644 --- a/libnotices.py +++ b/libnotices.py @@ -188,8 +188,7 @@ TD {border-width: 1px; padding: 3px; border-style: solid; border-color: black;} tableend=" " timezone = ZoneInfo("America/Chicago") returntable="Last Updated" + str(datetime.datetime.now(timezone)) -returntable+='
Click Here to be able to refresh the list.' -returntable+='
Click for the return list' +returntable+='
Click Here to visit the site.' returntable += """
@@ -277,8 +276,6 @@ else: for item in returnlist: returntable += "" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'' +"\n" returntable += tableend -with open("/var/www/html/returnlist.html","w",encoding='utf-8') as outhtml: - outhtml.write(returntable) htmltable = returntable with open("/var/www/html/index.html","w",encoding='utf-8') as outhtml: outhtml.write(htmltable)