我正在使用python的TrelloAPI(py trello),我需要获取特定列表中存在的所有卡片,甚至是归档的卡片
我尝试使用列表中的list_cards()方法列出所有卡片
all_boards = client.list_boards()
wls_board = all_boards[1]
my_lists = wls_board.list_lists()
for list in my_lists:
for card in list.list_cards():
if "Done" in card.name: print(card.name)
该方法仅返回未存档的卡。有没有一种方法也可以使用py trello获取归档卡
刚刚在文档中找到了解决方案
方法list_cards()的参数card_filter默认设置为“open”,因此我只需将其更改为“all”
list_cards(card_filter=’all’)
相关问题 更多 >
编程相关推荐