From 6d91f93e7e8f3842d26bb6d123b09be4a13c6d27 Mon Sep 17 00:00:00 2001 From: Julien Date: Wed, 8 Oct 2014 15:29:41 +0200 Subject: [PATCH] FIX: Inverted arguments All from_json take three arguments, first given automatically as they are classmethod, second is an object, third is the json to transform. In this one, the json was passed 2nd and the object (Board in this case) was passed third. --- trello/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trello/__init__.py b/trello/__init__.py index aeabf93a..af87dab3 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -311,7 +311,7 @@ def get_cards(self, filters=None): query_params=filters ) - return list([Card.from_json(json, self) for json in json_obj]) + return list([Card.from_json(self, json) for json in json_obj]) def all_members(self): """Returns all members on this board"""