Skip to content

Commit

Permalink
Initialize on fetch_checklists() (Closes #145)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarumont committed Aug 11, 2016
1 parent 6dd6716 commit e0d7417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ def get_comments(self):
return self.fetch_comments(force=True)

def fetch_checklists(self):

if not hasattr(self, "checked") or self.checked is None:
self.fetch(eager=False)

checklists = []
json_obj = self.client.fetch_json(
'/cards/' + self.id + '/checklists', )
Expand Down

0 comments on commit e0d7417

Please sign in to comment.