diff options
author | B. Stack <bgstack15@gmail.com> | 2024-07-13 16:47:39 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-07-13 16:47:39 -0400 |
commit | fe9d67d75beded1d932a4c53759bc74eda8fb5dc (patch) | |
tree | b825918efc75584404860c4886b1e3bc1ebca97f | |
parent | output the card expiration dates (diff) | |
download | library-info-fe9d67d75beded1d932a4c53759bc74eda8fb5dc.tar.gz library-info-fe9d67d75beded1d932a4c53759bc74eda8fb5dc.tar.bz2 library-info-fe9d67d75beded1d932a4c53759bc74eda8fb5dc.zip |
aspen: show pickup by date on ready reservations
-rw-r--r-- | libraries/aspen.py | 4 | ||||
-rwxr-xr-x | library_info_cli.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libraries/aspen.py b/libraries/aspen.py index 21e0115..d9b0984 100644 --- a/libraries/aspen.py +++ b/libraries/aspen.py @@ -85,7 +85,7 @@ class Library(BaseLibrary): "patron": self.alias, "position": values_dict["Position"] if "Position" in values_dict else "", "status": values_dict["Status"], - "date_placed": values_dict["Date Placed"], + "date_placed": "placed " + values_dict["Date Placed"], "format": values_dict["Format"], "location": values_dict["Pickup Location"], "title": title_obj.text, @@ -111,7 +111,7 @@ class Library(BaseLibrary): "patron": self.alias, "position": values_dict["Position"] if "Position" in values_dict else "", "status": "ready", - "date_placed": values_dict["Date Placed"], + "date_placed": "until " + values_dict["Pickup By"], "format": values_dict["Format"], "location": values_dict["Pickup Location"], "title": title_obj.text, diff --git a/library_info_cli.py b/library_info_cli.py index 2362c85..3c6174b 100755 --- a/library_info_cli.py +++ b/library_info_cli.py @@ -119,7 +119,7 @@ def html(checkouts, reservations, imagepath, imagerelativepath, card_expiration_ prn("<h2>Reservations</h2>\n") if len(reservations): prn(f"<table style='width: 100%;' class='display' id='reservations'>\n") - prn(f"<thead><tr><th>Patron</th><th>date placed</th><th>location</th><th>position</th><th>status</th><th>cover</th><th>title</th></thead>\n") + prn(f"<thead><tr><th>Patron</th><th>date</th><th>location</th><th>position</th><th>status</th><th>cover</th><th>title</th></thead>\n") prn("<tbody>\n") for i in reservations: prn(f"<tr>") |