From 04686a3179e2861517d6c56e09f88825bfb754f7 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Sun, 24 Feb 2019 14:39:14 -0500 Subject: [PATCH] pass date parameter --- penn/wharton.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/penn/wharton.py b/penn/wharton.py index 7e0b1d2..935c5da 100644 --- a/penn/wharton.py +++ b/penn/wharton.py @@ -115,7 +115,7 @@ def delete_booking(self, sessionid, booking_id): return {"success": True} - def get_wharton_gsrs(self, sessionid, date): + def get_wharton_gsrs(self, sessionid, date=None): """ Make a request to retrieve Wharton GSR listings. """ if date: date += " 05:00" @@ -174,7 +174,7 @@ def switch_format(self, gsr): rooms["rooms"].append(entry) return {"categories": [rooms]} - def get_wharton_gsrs_formatted(self, sessionid): + def get_wharton_gsrs_formatted(self, sessionid, date=None): """ Return the wharton GSR listing formatted in studyspaces format. """ - gsrs = self.get_wharton_gsrs(sessionid, None) + gsrs = self.get_wharton_gsrs(sessionid, date) return self.switch_format(gsrs)