Created
March 9, 2017 13:49
-
-
Save rbrady/fba8e76cdda48fa2a12748dd295f3137 to your computer and use it in GitHub Desktop.
Board Query Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check for board existence | |
board = [b for b in trello_api.list_boards() if b.name == board_name][0] | |
# if no board, print error and exit | |
if not board: | |
click.echo("Trello board not found!") | |
sys.exit(1) | |
# create board context | |
context = {'board': board} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment