From af8668c2e667b46a57a45dc2c87001d8107f4dff Mon Sep 17 00:00:00 2001 From: Sergey G Date: Sat, 13 Aug 2016 02:01:38 +0500 Subject: [PATCH 1/3] Fix "datetime.fromtimestamp(unix_time)" => "datetime.datetime.fromtimestamp(unix_time)" --- trello/card.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trello/card.py b/trello/card.py index 0eea7bc0..c6746a13 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 @@ -445,7 +444,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): From 4c5d3bd0f5105ba02f293be1950714d164a5dbf7 Mon Sep 17 00:00:00 2001 From: Sergey G Date: Tue, 16 Aug 2016 11:03:27 +0500 Subject: [PATCH 2/3] Fix "AttributeError: 'Card' object has no attribute 'idBoard'" --- trello/card.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trello/card.py b/trello/card.py index c6746a13..3dd59d7d 100644 --- a/trello/card.py +++ b/trello/card.py @@ -136,6 +136,7 @@ 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.labels = Label.from_json_list(card.board, json_obj['labels']) card.dateLastActivity = dateparser.parse(json_obj['dateLastActivity']) From f642144f753fe76896402359106c7f08492464ef Mon Sep 17 00:00:00 2001 From: Sergey G Date: Tue, 16 Aug 2016 11:14:17 +0500 Subject: [PATCH 3/3] Fix "AttributeError: 'Card' object has no attribute 'idShort'" --- trello/card.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trello/card.py b/trello/card.py index 3dd59d7d..c8fb385e 100644 --- a/trello/card.py +++ b/trello/card.py @@ -138,6 +138,7 @@ def from_json(cls, parent, json_obj): 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