From 75a907707d1272af08c9d109faf5285f8d90c34d Mon Sep 17 00:00:00 2001 From: Craig Tracey Date: Tue, 10 Feb 2015 22:45:19 -0500 Subject: [PATCH] Fix Board.from_json call parameterization 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. --- trello/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trello/__init__.py b/trello/__init__.py index de9247f3..d75c8b16 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -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): """ @@ -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()