Skip to content

Commit

Permalink
Check if actions are already fetched in _list_movements
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego J. Romero López committed Jul 27, 2016
1 parent ae20320 commit 78bd270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit 78bd270

Please sign in to comment.