Skip to content

Commit

Permalink
Fix Board.from_json call parameterization
Browse files Browse the repository at this point in the history
With the addition of support for organizations, new parameters were
added to Board.from_json. Not all calls to Board.from_json were
updated appropriately. This change addresses those calls.
  • Loading branch information
craigtracey committed Feb 11, 2015
1 parent aa577d1 commit 75a9077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def list_boards(self):
- url: URL to the board
"""
json_obj = self.fetch_json('/members/me/boards')
return [Board.from_json(self, obj) for obj in json_obj]
return [Board.from_json(self, json_obj=obj) for obj in json_obj]

def list_organizations(self):
"""
Expand All @@ -110,12 +110,12 @@ def get_organization(self, organization_id):

def get_board(self, board_id):
obj = self.fetch_json('/boards/' + board_id)
return Board.from_json(self, obj)
return Board.from_json(self, json_obj=obj)

def add_board(self, board_name):
obj = self.fetch_json('/boards', http_method='POST',
post_args={'name': board_name})
return Board.from_json(self, obj)
return Board.from_json(self, json_obj=obj)

def get_member(self, member_id):
return Member(self, member_id).fetch()
Expand Down

0 comments on commit 75a9077

Please sign in to comment.