Skip to content

Commit

Permalink
Merge pull request #111 from HarkonenBade/master
Browse files Browse the repository at this point in the history
Add remove_label function to card
  • Loading branch information
sarumont committed Aug 24, 2015
2 parents 476742b + 98a20a1 commit ee73f89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ def add_label(self, label):
http_method='POST',
post_args={'value': label.id})

def remove_label(self, label):
self.client.fetch_json(
'/cards/' + self.id + '/idLabels/' + label.id,
http_method='DELETE')

def attach(self, name=None, mimeType=None, file=None, url=None):
"""
Add an attachment to the card. The attachment can be either a
Expand Down

0 comments on commit ee73f89

Please sign in to comment.