Skip to content

Commit

Permalink
Some whitespace tweaks and a comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jean committed Jul 24, 2016
1 parent 8ac5d4a commit 8de0ac1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ def card_created_date(self):
The first 8 characters of the card id is a hexadecimal number.
Converted to a decimal from hexadecimal, the timestamp is an Unix
timestamp (the number of seconds that have elapsed since January 1,
1970 midnight UTC.See
1970 midnight UTC. See
http://help.trello.com/article/759-getting-the-time-a-card-or-board-was-created
"""
unix_time = int(self.id[:8],16)
unix_time = int(self.id[:8], 16)

return datetime.fromtimestamp(unix_time)

Expand Down Expand Up @@ -469,8 +469,8 @@ def set_closed(self, closed):
self.closed = closed


def delete_comment(self,comment):
# Delete this card permanently
def delete_comment(self, comment):
# Delete this comment permanently
self.client.fetch_json(
'/cards/' + self.id + '/actions/' + comment['id'] + '/comments',
http_method='DELETE')
Expand Down Expand Up @@ -536,11 +536,9 @@ def attach(self, name=None, mimeType=None, file=None, url=None):
kwargs['mimeType'] = mimeType
kwargs['url'] = url

self._post_remote_data(
'attachments', **kwargs
)
self._post_remote_data('attachments', **kwargs)

def remove_attachment(self,attachment_id):
def remove_attachment(self, attachment_id):
"""
Remove attachment from card
:param attachment_id: Attachment id
Expand Down

0 comments on commit 8de0ac1

Please sign in to comment.