Skip to content

Commit

Permalink
Add remove_label function to card
Browse files Browse the repository at this point in the history
Adds a remove_label function to Card that allows for removal of
labels by passing the appropriate label object to the function.
  • Loading branch information
HarkonenBade committed Aug 21, 2015
1 parent 476742b commit 98a20a1
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 98a20a1

Please sign in to comment.