From 0ad3eb20338dfad47be481bd2ef21544ddb8da29 Mon Sep 17 00:00:00 2001 From: Jacob Budin Date: Tue, 5 Jan 2016 21:52:05 -0500 Subject: [PATCH] Add card filter parameter to List.list_cards() --- trello/trellolist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trello/trellolist.py b/trello/trellolist.py index 581b95f2..60139abd 100644 --- a/trello/trellolist.py +++ b/trello/trellolist.py @@ -40,9 +40,9 @@ def fetch(self): self.name = json_obj['name'] self.closed = json_obj['closed'] - def list_cards(self): + def list_cards(self, card_filter="open"): """Lists all cards in this list""" - json_obj = self.client.fetch_json('/lists/' + self.id + '/cards') + json_obj = self.client.fetch_json('/lists/' + self.id + '/cards/' + card_filter) return [Card.from_json(self, c) for c in json_obj] def add_card(self, name, desc=None, labels=[], due="null"):