Skip to content

Commit

Permalink
Merge pull request #119 from jacobbudin/master
Browse files Browse the repository at this point in the history
Add card filter parameter to List.list_cards()
  • Loading branch information
sarumont committed Jan 6, 2016
2 parents 7e51b10 + 0ad3eb2 commit db04969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trello/trellolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit db04969

Please sign in to comment.