From 78bd270d0c0b0d2f0cd30d9d8c30a0fde57319d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20J=2E=20Romero=20L=C3=B3pez?= Date: Wed, 27 Jul 2016 19:24:52 +0200 Subject: [PATCH] Check if actions are already fetched in _list_movements --- trello/card.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trello/card.py b/trello/card.py index 49b1c532..57c2a9e3 100644 --- a/trello/card.py +++ b/trello/card.py @@ -261,7 +261,8 @@ def _list_movements(self, movement_function, filter_by_date_interval=None): action_since = None if not filter_by_date_interval else filter_by_date_interval[0] action_before = None if not filter_by_date_interval else filter_by_date_interval[1] - self.fetch_actions('updateCard:idList,', action_since, action_before) + if not hasattr(self, "actions") or self.actions is None: + self.fetch_actions('updateCard:idList,', action_since, action_before) movements = []