Update plankapy.py
Fix reference to label_id.
This commit is contained in:
parent
ef9b2dea1d
commit
6d7c04159f
1 changed files with 2 additions and 2 deletions
|
@ -578,7 +578,7 @@ class Label(Controller):
|
||||||
raise InvalidToken("Please provide a project, board, label name")
|
raise InvalidToken("Please provide a project, board, label name")
|
||||||
if card_id:
|
if card_id:
|
||||||
label_id = [label['id'] for label in Card(self.instance).get_labels(oid=card_id) if label['name'] == label_name][0]
|
label_id = [label['id'] for label in Card(self.instance).get_labels(oid=card_id) if label['name'] == label_name][0]
|
||||||
return super().delete(f"/api/cards/{card_id}/labels/{label['item']['id']}")
|
return super().delete(f"/api/cards/{card_id}/labels/{label_id}")
|
||||||
if not (card_name and list_name):
|
if not (card_name and list_name):
|
||||||
raise InvalidToken("Please provide a card and list name")
|
raise InvalidToken("Please provide a card and list name")
|
||||||
card_con = Card(self.instance)
|
card_con = Card(self.instance)
|
||||||
|
@ -802,4 +802,4 @@ class User(Controller):
|
||||||
class InvalidToken(Exception):
|
class InvalidToken(Exception):
|
||||||
"""General Error for invalid API inputs
|
"""General Error for invalid API inputs
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue