Skip to content

Commit

Permalink
FIX: Inverted arguments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JulienPalard committed Oct 8, 2014
1 parent 2371296 commit 6d91f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 6d91f93

Please sign in to comment.