From ee43db90e65ddb909bced04f65c9cbdbc15ea3a8 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Sun, 21 Dec 2014 19:59:37 +0100 Subject: [PATCH] fetch_checklists: allow the list to be empty --- trello/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trello/__init__.py b/trello/__init__.py index 4b717c1b..0cfdf581 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -585,11 +585,11 @@ def fetch_comments(self): def fetch_checklists(self): checklists = [] - if self.badges['checkItems'] > 0: - json_obj = self.client.fetch_json( - '/cards/' + self.id + '/checklists', ) - for cl in json_obj: - checklists.append(Checklist(self.client, self.checked, cl, trello_card=self.id)) + json_obj = self.client.fetch_json( + '/cards/' + self.id + '/checklists', ) + for cl in json_obj: + checklists.append(Checklist(self.client, self.checked, cl, + trello_card=self.id)) return checklists def fetch_actions(self, action_filter='createCard'):