Skip to content

Commit

Permalink
remove spaces/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Feb 24, 2019
1 parent 05ce9fd commit d193bd0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions penn/wharton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -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)

0 comments on commit d193bd0

Please sign in to comment.