Skip to content

Commit

Permalink
pass date parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Feb 24, 2019
1 parent 9bfb967 commit 04686a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions penn/wharton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)

0 comments on commit 04686a3

Please sign in to comment.