diff --git a/trello/card.py b/trello/card.py index 0eea7bc0..c8fb385e 100644 --- a/trello/card.py +++ b/trello/card.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import with_statement, print_function, absolute_import from dateutil import parser as dateparser -from datetime import datetime from trello.organization import Organization from trello.compat import force_str @@ -137,7 +136,9 @@ def from_json(cls, parent, json_obj): card.idMembers = json_obj['idMembers'] card.member_ids = json_obj['idMembers'] card.idLabels = json_obj['idLabels'] + card.idBoard = json_obj['idBoard'] card.idList = json_obj['idList'] + card.idShort = json_obj['idShort'] card.labels = Label.from_json_list(card.board, json_obj['labels']) card.dateLastActivity = dateparser.parse(json_obj['dateLastActivity']) return card @@ -445,7 +446,7 @@ def card_created_date(self): """ unix_time = int(self.id[:8], 16) - return datetime.fromtimestamp(unix_time) + return datetime.datetime.fromtimestamp(unix_time) @property def due_date(self):