From fe9d67d75beded1d932a4c53759bc74eda8fb5dc Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 13 Jul 2024 16:47:39 -0400 Subject: aspen: show pickup by date on ready reservations --- libraries/aspen.py | 4 ++-- 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("

Reservations

\n") if len(reservations): prn(f"\n") - prn(f"\n") + prn(f"\n") prn("\n") for i in reservations: prn(f"") -- cgit
Patrondate placedlocationpositionstatuscovertitle
Patrondatelocationpositionstatuscovertitle