diff --git a/penn/wharton.py b/penn/wharton.py index f938194..dd93252 100644 --- a/penn/wharton.py +++ b/penn/wharton.py @@ -46,7 +46,6 @@ def get_reservations(self, sessionid): reservations.append(reservation) return reservations - def delete_booking(self, sessionid, booking_id): """Deletes a Wharton GSR Booking for a given booking and session id""" url = "{}{}{}/".format(BASE_URL, "/delete/", booking_id) @@ -81,7 +80,6 @@ def delete_booking(self, sessionid, booking_id): return "success" - def get_wharton_gsrs(self, sessionid, date): if date: date += " 05:00" @@ -97,7 +95,6 @@ def get_wharton_gsrs(self, sessionid, date): else: raise APIError('Remote server returned status code {}.'.format(resp.status_code)) - def switch_format(self, gsr): if "error" in gsr: return gsr @@ -131,9 +128,6 @@ def switch_format(self, gsr): del entry["reservation_id"] entry["lid"] = 1 entry["capacity"] = 5 - # entry["gid"] = null - # entry["thumbnail"] = null; - # entry["description"] = null entry["room_id"] = entry["id"] del entry["id"] entry["times"] = [time] @@ -143,7 +137,6 @@ def switch_format(self, gsr): rooms["rooms"].append(entry) return {"categories": [rooms]} - def get_wharton_gsrs_formatted(self, sessionid): gsrs = self.get_wharton_gsrs(sessionid, None) return self.switch_format(gsrs)