From 608df68967a78bd9fce89a8497a96dd782b38623 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 11 Jul 2024 09:27:54 -0400 Subject: implement reservations for polaris --- libraries/aspen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libraries/aspen.py') diff --git a/libraries/aspen.py b/libraries/aspen.py index b024263..5b678f9 100644 --- a/libraries/aspen.py +++ b/libraries/aspen.py @@ -76,7 +76,8 @@ class Library(BaseLibrary): img_href = i.find("img")["src"] img_b64, img_type = self.get_image(img_href) obj = { - "position": values_dict["Position"], + "patron": self.alias, + "position": values_dict["Position"] if "Position" in values_dict else "", "status": values_dict["Status"], "date_placed": values_dict["Date Placed"], "format": values_dict["Format"], @@ -88,7 +89,7 @@ class Library(BaseLibrary): "img_type": img_type, } unavailableReservations.append(obj) - # WORKHERE: availableHolds, might not be available. + # WORKHERE: availableHolds, might not exist in the DOM. Not implemented yet because I have not yet had any available holds. # Return a single list of objects return availableReservations + unavailableReservations -- cgit