Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
update limit on reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Aug 9, 2015
1 parent e69fc58 commit 253a436
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vraapiclient/reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def getReservation(self, reservationid):

return reservation

def getAllReservations(self, show='table'):
def getAllReservations(self, show='table', limit=20):
"""
Get all reservations
Parameters:
Expand All @@ -272,7 +272,8 @@ def getAllReservations(self, show='table'):
host = self.host
token = self.token

url = 'https://' + host + '/reservation-service/api/reservations'
url = 'https://' + host + '/reservation-service/api/reservations?limit={limit}'.format(
limit=limit)

headers = {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 253a436

Please sign in to comment.