Skip to content

Commit

Permalink
Added card_filter argument to Board.get_cards()
Browse files Browse the repository at this point in the history
There is a comment about card_filter but not on the argument list. Added card_filter.
  • Loading branch information
yeonsh committed Jan 20, 2016
1 parent 4e18db8 commit a1f7dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trello/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def closed_cards(self):
}
return self.get_cards(filters)

def get_cards(self, filters=None):
def get_cards(self, filters=None, card_filter=""):
"""
:card_filter: filters on card status ('open', 'closed', 'all')
:query_params: dict containing query parameters. Eg. {'fields': 'all'}
Expand All @@ -216,7 +216,7 @@ def get_cards(self, filters=None):
:rtype: Card
"""
json_obj = self.client.fetch_json(
'/boards/' + self.id + '/cards',
'/boards/' + self.id + '/cards/' + card_filter,
query_params=filters
)

Expand Down

0 comments on commit a1f7dd2

Please sign in to comment.