diff --git a/trello/__init__.py b/trello/__init__.py index 05173998..79e87630 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -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 @@ -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(