Skip to content

Commit

Permalink
Return the new comment data when creating a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego J. Romero López committed Oct 11, 2016
1 parent ca67ffc commit f16a28b
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 @@ -517,10 +517,11 @@ def subscribe(self):

def comment(self, comment_text):
"""Add a comment to a card."""
self.client.fetch_json(
comment_data = self.client.fetch_json(
'/cards/' + self.id + '/actions/comments',
http_method='POST',
post_args={'text': comment_text})
return comment_data

def add_label(self, label):
self.client.fetch_json(
Expand Down

0 comments on commit f16a28b

Please sign in to comment.