Skip to content

Commit

Permalink
provide access to the raw card json
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshe Immerman committed Oct 26, 2018
1 parent 595043f commit b88cabc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def __init__(self, parent, card_id, name=''):
self._plugin_data = None
self._attachments = None
self._labels = None
self._json_obj = None

@classmethod
def from_json(cls, parent, json_obj):
Expand All @@ -141,6 +142,7 @@ def from_json(cls, parent, json_obj):
card = cls(parent,
json_obj['id'],
name=json_obj['name'])
card._json_obj = json_obj
card.desc = json_obj.get('desc', '')
card.due = json_obj.get('due', '')
card.is_due_complete = json_obj['dueComplete']
Expand Down

0 comments on commit b88cabc

Please sign in to comment.