Skip to content

Commit

Permalink
added list to card
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizualni committed Jun 4, 2015
1 parent 85f4202 commit bae80fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ def from_json(cls, parent, json_obj):
card.url = json_obj['url']
card.member_ids = json_obj['idMembers']
card.idLabels = json_obj['idLabels']
card.idList = json_obj['idList']
card.labels = Label.from_json_list(card.board, json_obj['labels'])
return card

Expand Down Expand Up @@ -824,6 +825,10 @@ def fetch_comments(self):

return comments

def get_list(self):
obj = self.client.fetch_json('/lists/' + self.idList)
return List.from_json(board=self, json_obj=obj)

def get_comments(self):
comments = []
comments = self.client.fetch_json(
Expand Down

0 comments on commit bae80fc

Please sign in to comment.